home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / samba / patches / samba-1.004 / samba-1
Encoding:
Text File  |  1996-05-29  |  97.7 KB  |  3,310 lines

  1. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/README samba-1.9.16alpha2/README
  2. --- samba-1.9.16alpha1/README    Mon Dec  4 00:35:25 1995
  3. +++ samba-1.9.16alpha2/README    Tue May 28 23:37:21 1996
  4. @@ -35,7 +35,8 @@
  5.  
  6.  If you want to contribute to the development of the software then
  7.  please join the mailing list. I accept patches (preferably in 
  8. -"diff -u" format) and am always glad to receive feedback or suggestions.
  9. +"diff -u" format, see docs/BUGS.txt for more details) and am always glad to 
  10. +receive feedback or suggestions.
  11.  
  12.  You could also send hardware/software/money/jewelry or pizza
  13.  vouchers directly to me. The pizza vouchers would be especially
  14. @@ -49,7 +50,7 @@
  15.  something else.
  16.  
  17.  Andrew Tridgell
  18. -Email: samba-bugs@anu.edu.au
  19. +Email: samba-bugs@samba.anu.edu.au
  20.  
  21.  3 Ballow Crescent
  22.  Macgregor, A.C.T.
  23. @@ -70,18 +71,18 @@
  24.  --------
  25.  
  26.  The main anonymous ftp distribution site for this software is
  27. -nimbus.anu.edu.au in the directory pub/tridge/samba/.
  28. +samba.anu.edu.au in the directory pub/samba/.
  29.  
  30.  MAILING LIST
  31.  ------------
  32.  
  33.  There is a mailing list for discussion of Samba. To subscribe send
  34. -mail to listproc@anu.edu.au with a body of "subscribe samba Your Name"
  35. +mail to listproc@samba.anu.edu.au with a body of "subscribe samba Your Name"
  36.  
  37.  To send mail to everyone on the list mail to samba@listproc.anu.edu.au
  38.  
  39.  There is also an announcement mailing list where I announce new
  40. -versions.  To subscribe send mail to listproc@anu.edu.au with a body
  41. +versions.  To subscribe send mail to listproc@samba.anu.edu.au with a body
  42.  of "subscribe samba-announce Your Name". All announcements also go to
  43.  the samba list.
  44.  
  45. @@ -102,7 +103,11 @@
  46.  
  47.  A Samba WWW site has been setup with lots of useful info. Connect to:
  48.  
  49. -http://lake.canberra.edu.au/pub/samba/
  50. +http://samba.canberra.edu.au/pub/samba/
  51. +
  52. +As well as general information and documentation, this also has searchable 
  53. +archives of the mailing list and a user survey that shows who else is using
  54. +this package. Have you registered with the survey yet? :-)
  55.  
  56.  It is maintained by Paul Blackman (thanks Paul!). You can contact him
  57.  at ictinus@lake.canberra.edu.au.
  58. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/docs/BUGS.txt samba-1.9.16alpha2/docs/BUGS.txt
  59. --- samba-1.9.16alpha1/docs/BUGS.txt    Mon Nov 27 10:55:31 1995
  60. +++ samba-1.9.16alpha2/docs/BUGS.txt    Tue May 28 23:37:22 1996
  61. @@ -2,10 +2,6 @@
  62.  
  63.  >> The email address for bug reports is samba-bugs@anu.edu.au <<
  64.  
  65. -(NOTE: This mail may not be in place yet. If you have troubles with it
  66. -then use samba-bugs@arvidsjaur.anu.edu.au)
  67. -
  68. -
  69.  Please take the time to read this file before you submit a bug
  70.  report. Also, please see if it has changed between releases, as I
  71.  may be changing the bug reporting mechanism sometime soon.
  72. @@ -17,15 +13,14 @@
  73.  report that lets me fix it fast. 
  74.  
  75.  Do not assume that if you post the bug to the comp.protocols.smb
  76. -newsgroup that I will read it. I do read all postings to the samba
  77. -mailing list (see the README). If you suspect that your problem is not
  78. -a bug but a configuration problem then it is better to send it to the
  79. -Samba mailing list, as there are (at last count) 1900 other users on
  80. +newsgroup or the mailing list that I will read it. If you suspect that your 
  81. +problem is not a bug but a configuration problem then it is better to send 
  82. +it to the Samba mailing list, as there are (at last count) 1900 other users on
  83.  that list that may be able to help you.
  84.  
  85.  You may also like to look though the recent mailing list archives,
  86.  which are conveniently accessible on the Samba web pages
  87. -at http://lake.canberra.edu.au/pub/samba/ 
  88. +at http://samba.canberra.edu.au/pub/samba/ 
  89.  
  90.  
  91.  GENERAL INFO
  92. @@ -35,6 +30,8 @@
  93.  errors. Look in your log files for obvious messages that tell you that
  94.  you've misconfigured something and run testparm to test your config
  95.  file for correct syntax.
  96. +
  97. +Have you run through DIAGNOSIS.txt? This is very important.
  98.  
  99.  If you include part of a log file with your bug report then be sure to
  100.  annotate it with exactly what you were doing on the client at the
  101. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/docs/DIAGNOSIS.txt samba-1.9.16alpha2/docs/DIAGNOSIS.txt
  102. --- samba-1.9.16alpha1/docs/DIAGNOSIS.txt    Mon Nov 27 10:55:31 1995
  103. +++ samba-1.9.16alpha2/docs/DIAGNOSIS.txt    Tue May 28 23:37:23 1996
  104. @@ -86,7 +86,13 @@
  105.  connection. If it says "your server software is being unfriendly" then
  106.  its probably because you have invalid command line parameters to smbd,
  107.  or a similar fatal problem with the initial startup of smbd. Also
  108. -check your config file for syntax errors with "testparm".
  109. +check your config file for syntax errors with "testparm". 
  110. +
  111. +Another common cause of these two errors is having something already running 
  112. +on port 139, such as Samba (ie smbd is running from inetd already) or something
  113. +like Digital's Pathworks. Check your inetd.conf file before trying to start
  114. +smbd as a daemon, it can avoid a lot of frustration!
  115. +
  116.  
  117.  TEST 4:
  118.  -------
  119. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/docs/HINTS.txt samba-1.9.16alpha2/docs/HINTS.txt
  120. --- samba-1.9.16alpha1/docs/HINTS.txt    Mon Nov 27 10:55:31 1995
  121. +++ samba-1.9.16alpha2/docs/HINTS.txt    Tue May 28 23:37:23 1996
  122. @@ -40,7 +40,7 @@
  123.  windows. Just drag your file onto the icon and it converts the file.
  124.  
  125.  Get it from
  126. -ftp://nimbus.anu.edu.au/pub/tridge/samba/contributed/fixcrlf.zip
  127. +ftp://samba.anu.edu.au/pub/samba/contributed/fixcrlf.zip
  128.  
  129.  ---------------------- 
  130.  HINT: Use the "username map" option
  131. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/docs/MIRRORS samba-1.9.16alpha2/docs/MIRRORS
  132. --- samba-1.9.16alpha1/docs/MIRRORS    Tue Feb 20 20:41:22 1996
  133. +++ samba-1.9.16alpha2/docs/MIRRORS    Tue May 28 23:39:00 1996
  134. @@ -1,17 +1,18 @@
  135. -The main Samba site is nimbus.anu.edu.au in pub/tridge/samba/. Contact
  136. -samba-bugs@anu.edu.au for help with this site.
  137. +The main Samba site is samba.anu.edu.au in pub/samba/. Contact
  138. +samba-bugs@samba.anu.edu.au for help with this site.
  139.  
  140.  Mirror sites include:
  141.  
  142. -
  143. -ftp://src.doc.ic.ac.uk/packages/samba
  144. -ftp://ftp.warwick.ac.uk/pub/linux/sunsite.unc-mirror/system/Network/samba
  145. +ftp://nimbus.anu.edu.au/pub/tridge/samba
  146. +ftp://sunsite.auc.dk/pub/unix/networking/samba/
  147. +ftp://src.doc.ic.ac.uk/packages/samba/
  148. +ftp://ftp.warwick.ac.uk/pub/linux/sunsite.unc-mirror/system/Network/samba/
  149.  ftp://sunsite.unc.edu/pub/Linux/system/Network/samba/
  150. -ftp://ftp.choc.apana.org.au/pub/samba
  151. +ftp://ftp.choc.apana.org.au/pub/samba/
  152.  ftp://ftp.uni-trier.de/pub/unix/network/samba/
  153. -ftp://ftp.spectrum.titan.com/pub/samba
  154. -ftp://ftp.demon.co.uk/pub/unix/unix/samba
  155. -ftp://sunsite.mff.cuni.cz/Net/Protocols/Samba
  156. +ftp://ftp.spectrum.titan.com/pub/samba/
  157. +ftp://ftp.demon.co.uk/pub/unix/unix/samba/
  158. +ftp://sunsite.mff.cuni.cz/Net/Protocols/Samba/
  159.  
  160.  There are several others. Give archie a try.
  161.  
  162. @@ -21,8 +22,10 @@
  163.  AIX and DEC OSF/1 binaries are available from:
  164.  ftp://151.99.220.5/pub/samba (built by davide.migliavacca@inferentia.inet.it)
  165.  
  166. +QNX binaries and source code:
  167. +ftp://quics.qnx.com/usr/free/staging/samba
  168.  
  169.  Http sites include:
  170.  
  171. -http://lake.canberra.edu.au/pub/samba
  172. +http://samba.canberra.edu.au/pub/samba
  173.  http://www.choc.apana.org.au/pub/samba
  174. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/docs/README.OS2 samba-1.9.16alpha2/docs/README.OS2
  175. --- samba-1.9.16alpha1/docs/README.OS2    Tue Feb 20 11:43:47 1996
  176. +++ samba-1.9.16alpha2/docs/README.OS2    Sat May 18 15:02:23 1996
  177. @@ -41,7 +41,7 @@
  178.  
  179.  Source is available from the Samba WWW site :
  180.  
  181. -http://lake.canberra.edu.au/pub/samba/
  182. +http://samba.canberra.edu.au/pub/samba/
  183.  
  184.  EMX 0.9b is available from hobbes.nmsu.edu, ftp.cdrom.com, ftp.leo.org and
  185.  other OS/2 FTP sites.  emxrt.zip contains the required libraries.
  186. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/docs/Support.txt samba-1.9.16alpha2/docs/Support.txt
  187. --- samba-1.9.16alpha1/docs/Support.txt    Wed Feb 28 14:42:36 1996
  188. +++ samba-1.9.16alpha2/docs/Support.txt    Sun May  5 17:15:53 1996
  189. @@ -41,11 +41,13 @@
  190.  ------------------------------------------------------------------------------
  191.  READING - ENGLAND
  192.  
  193. -Philip Hands                  |   E-Mail: info@hands.com
  194. -Philip Hands Computing Ltd.   |   Tel: +44 1734 476287 Fax: 1734 474655
  195. -Unit 1, Cherry Close, Caversham, Reading RG4 8UP  UK
  196. -
  197. -Samba experience:  SVR4,SVR3.2 & Linux <--> WfWg, W3.1, OS2 and MS-LanMan
  198. +Philip Hands                | E-Mail: info@hands.com  Tel:+44 1734 545656
  199. +Philip Hands Computing Ltd. | Mobile: +44 802 242989  Fax:+44 1734 474655
  200. +Unit 1, Cherry Close, Caversham, Reading  RG4 8UP  ENGLAND
  201. +
  202. +Samba experience: 
  203. +  Server platforms: Linux,SVR4,SVR3.2 & Sequent ptx
  204. +  Clients: WfWg, W3.1, OS2 and MS-LanMan
  205.  ------------------------------------------------------------------------------
  206.  
  207.  ------------------------------------------------------------------------------
  208. @@ -243,15 +245,15 @@
  209.  TELEPHONE 01509-620922
  210.  FAX       01509-620933
  211.  
  212. -CONTACT DAVID ROBINSON
  213. +Contact David Robinson
  214.  
  215. -WE ARE UNIX ORIENTATED BUT ALSO SPECIALISE IN PC TO UNIX COMMUNICATIONS, WE 
  216. -KNOW AND UNDERSTAND PC-NFS, (HENCE OUR INTEREST IN SAMBA).
  217. -WE SUPPORT  SUNOS, SOLARIS 1.X AND 2.X, HP-UX 9.0 AND 10.0, OSF (or DEC UNIX, 
  218. -whichever you prefer), WinNT, WfWG and Win95.
  219. +We are unix orientated but also specialise in pc to unix communications, we 
  220. +know and understand pc-nfs, (hence our interest in samba).
  221. +we support  sunos, solaris 1.x and 2.x, hp-ux 9.0 and 10.0, osf (or dec unix, 
  222. +whichever you prefer), winnt, wfwg and win95.
  223.  
  224. -WE ARE ALREADY TALKING TO A COUPLE OF VERY LARGE SAMBA USERS HERE IN THE UK. 
  225. -WE WOULD LIKE TO SUPPORT THEM (AND MANY MORE), WOULD YOU PLEASE CONTACT ME ON:
  226. +We are already talking to a couple of very large samba users here in the uk. 
  227. +we would like to support them (and many more), would you please contact me on:
  228.  david@tectonic.demon.co.uk
  229.  ----------------------------------------------------------
  230.  
  231. @@ -356,5 +358,38 @@
  232.  rowl@earthlink.net
  233.  Michael St. Laurent
  234.  Hartwell Corporation
  235. ------------------------------------------------------------------------
  236. +------------------------------------------------------------------------------
  237. +
  238. +------------------------------------------------------------------------------
  239. +WASHINGTON DC METRO - USA
  240. +
  241. +Asset Software, Inc. has been running Samba since the 1.6 release on various
  242. +platforms, including SunOS 4.x, Solaris 2.x, IRIX 4.x and 5.x, Linux 1.1x,
  243. +1.2x, and 1.3x, and BSD UNIX 4.3 and above.  We specialize in small office
  244. +network solutions and provide services to enhance a small office's
  245. +operations.  Primarily a custom software operation, our vast knowledge of
  246. +Windows, DOS, Unix, Windows NT, MacOS, and OS/2 enable us to provide quality
  247. +technical assistance to the small office environment at a reasonable price.
  248. +Our upcoming multi-mailbox mail client, IQ Mail, enables users with more
  249. +than one mailbox to send and retrieve their mail from a single, consistent
  250. +mail client running in Windows.
  251. +
  252. +David J. Fenwick                                          Asset Software, Inc.
  253. +President                                                      djf@assetsw.com
  254. +------------------------------------------------------------------------------
  255. +
  256. +
  257. +------------------------------------------------------------------------------
  258. +WELLINGTON - NEW ZEALAND
  259. +
  260. +David Gempton
  261. +Computer Consultant 
  262. +UNIX & PC Networking specialist 
  263. +TTC Technology Training Consulting
  264. +PO Box 5444 
  265. +Lambton Quay Wellington
  266. +New Zealand
  267. +Phone (025) 518-574
  268. +Email: ttcdg@cyberspace.co.nz
  269. +------------------------------------------------------------------------------
  270.  
  271. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/docs/announce samba-1.9.16alpha2/docs/announce
  272. --- samba-1.9.16alpha1/docs/announce    Mon Nov 27 10:55:33 1995
  273. +++ samba-1.9.16alpha2/docs/announce    Tue May 28 23:37:23 1996
  274. @@ -93,8 +93,8 @@
  275.  Where can I get it?
  276.  -------------------
  277.  
  278. -The package is available via anonymous ftp from nimbus.anu.edu.au in
  279. -the directory pub/tridge/samba/. 
  280. +The package is available via anonymous ftp from samba.anu.edu.au in
  281. +the directory pub/samba/. 
  282.  
  283.  What about SMBServer?
  284.  ---------------------
  285. @@ -123,7 +123,7 @@
  286.  newsgroup comp.protocols.smb.
  287.  
  288.  A WWW site with lots of Samba info can be found at 
  289. -http://lake.canberra.edu.au/pub/samba/
  290. +http://samba.canberra.edu.au/pub/samba/
  291.  
  292.  Andrew Tridgell (Contact: samba-bugs@anu.edu.au)
  293.  January 1995
  294. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/docs/history samba-1.9.16alpha2/docs/history
  295. --- samba-1.9.16alpha1/docs/history    Mon Nov 27 10:55:33 1995
  296. +++ samba-1.9.16alpha2/docs/history    Sat May  4 17:50:22 1996
  297. @@ -156,4 +156,10 @@
  298.  ---------------------
  299.  
  300.  
  301. -
  302. +---------------------
  303. +It's now March 1996 and version 1.9.16alpha1 has just been
  304. +released. There have been lots of changes recently with master browser
  305. +support and the ability to do domain logons etc. Samba has also been
  306. +ported to OS/2, the amiga and NetWare. There are now 3000 people on
  307. +the samba mailing list.
  308. +---------------------
  309. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/docs/nmbd.8 samba-1.9.16alpha2/docs/nmbd.8
  310. --- samba-1.9.16alpha1/docs/nmbd.8    Sun Feb 18 18:01:18 1996
  311. +++ samba-1.9.16alpha2/docs/nmbd.8    Mon May  6 10:35:42 1996
  312. @@ -56,10 +56,6 @@
  313.  with the
  314.  .B -n
  315.  option (see "OPTIONS" below). Using the
  316. -.B -S
  317. -option (see "OPTIONS" below), it can also be instructed to respond with IP 
  318. -information about other hosts, provided they are locatable via the 
  319. -gethostbyname() call, or they are in a netbios hosts file.
  320.  
  321.  Nmbd can also be used as a WINS (Windows Internet Name Server)
  322.  server. It will do this automatically by default. What this basically
  323. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/docs/samba.7 samba-1.9.16alpha2/docs/samba.7
  324. --- samba-1.9.16alpha1/docs/samba.7    Mon Nov 27 10:55:33 1995
  325. +++ samba-1.9.16alpha2/docs/samba.7    Tue May 28 23:37:23 1996
  326. @@ -45,7 +45,7 @@
  327.  intact.
  328.  
  329.  The latest version of the Samba suite can be obtained via anonymous
  330. -ftp from nimbus.anu.edu.au in the directory pub/tridge/samba/. It is
  331. +ftp from samba.anu.edu.au in the directory pub/samba/. It is
  332.  also available on several mirror sites worldwide.
  333.  
  334.  You may also find useful information about Samba on the newsgroup
  335. @@ -54,7 +54,7 @@
  336.  
  337.  If you have access to a WWW viewer (such as Netscape or Mosaic) then
  338.  you will also find lots of useful information, including back issues
  339. -of the Samba mailing list, at http://lake.canberra.edu.au/pub/samba/
  340. +of the Samba mailing list, at http://samba.canberra.edu.au/pub/samba/
  341.  
  342.  .SH AUTHOR
  343.  
  344. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/docs/samba.faq samba-1.9.16alpha2/docs/samba.faq
  345. --- samba-1.9.16alpha1/docs/samba.faq    Mon Nov 27 10:55:33 1995
  346. +++ samba-1.9.16alpha2/docs/samba.faq    Tue May 28 23:37:23 1996
  347. @@ -5,7 +5,7 @@
  348.  
  349.                                     SAMBA Suite
  350.  
  351. -                  (FAQ version 1.9.02, Samba version 1.09.02)
  352. +                  (FAQ version 1.9.15a, Samba version 1.09.15)
  353.  
  354.  -------------------------------------------------------------------------------
  355.  
  356. @@ -54,18 +54,26 @@
  357.  * 1: What is Samba?
  358.  
  359.  Samba is a suite of programs which work together to allow clients to access
  360. -Unix filespace and printers via the SMB (Session Message Block) protocol.
  361. +to a server's filespace and printers via the SMB (Session Message Block) 
  362. +protocol. Initially written for Unix, Samba now also runs on Netware, OS/2 and
  363. +AmigaDOS.
  364.  
  365.  In practice, this means that you can redirect disks and printers to Unix disks
  366.  and printers from Lan Manager clients, Windows for Workgroups 3.11 clients,
  367. -Windows NT clients and OS/2 clients. There is also a Unix client program
  368. -supplied as part of the suite which allows Unix users to use an ftp-like
  369. -interface to access filespace and printers on any other SMB servers.
  370. +Windows NT clients, Linux clients and OS/2 clients. There is also a generic 
  371. +Unix client program supplied as part of the suite which allows Unix users to 
  372. +use an ftp-like interface to access filespace and printers on any other SMB 
  373. +servers. This gives the capability for these operating systems to behave much
  374. +like a LAN Server or Windows NT Server machine, only with added functionality
  375. +and flexibility designed to make life easier for administrators.
  376.  
  377.  The components of the suite are (in summary):
  378.  
  379. -     * smbd, the SMB server. This handles actual connections from clients
  380. -     * nmbd, the Netbios name server, which helps clients locate servers
  381. +     * smbd, the SMB server. This handles actual connections from clients,
  382. +         doing all the file, permission and username work
  383. +     * nmbd, the Netbios name server, which helps clients locate servers,
  384. +         doing the browsing work and managing domains as this capability is
  385. +         being built into Samba
  386.       * smbclient, the Unix-hosted client program
  387.       * smbrun, a little 'glue' program to help the server run external
  388.           programs
  389. @@ -75,32 +83,34 @@
  390.       * smb.conf, the Samba configuration file
  391.       * smbprint, a sample script to allow a Unix host to use smbclient to
  392.           print to an SMB server
  393. +     * documentation! DON'T neglect to read it - you will save a great deal
  394. +         of time!
  395.  
  396.  The suite is supplied with full source (of course!) and is GPLed.
  397.  
  398.  The primary creator of the Samba suite is Andrew Tridgell. Later versions
  399.  incorporate much effort by many net.helpers. The man pages and this FAQ were
  400. -written by Karl Auer.
  401. +originally written by Karl Auer.
  402.  
  403.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  404.  * 2: What is the current version of Samba?
  405.  
  406. -At time of writing, the current version was 1.9.12. If you want to be sure
  407. +At time of writing, the current version was 1.9.15. If you want to be sure
  408.  check the bottom of the change-log file. 
  409. -(nimbus.anu.edu.au/pub/tridge/samba/change-log)
  410. +(ftp://samba.anu.edu.au/pub/samba/alpha/change-log)
  411.  
  412.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  413.  * 3: Where can I get it?
  414.  
  415. -The Samba suite is available via anonymous ftp from nimbus.anu.edu.au. The
  416. +The Samba suite is available via anonymous ftp from samba.anu.edu.au. The
  417.  latest and greatest versions of the suite are in the directory:
  418.  
  419. -/pub/tridge/samba/
  420. +/pub/samba/
  421.  
  422.  Development (read "alpha") versions, which are NOT necessarily stable and which
  423.  do NOT necessarily have accurate documentation, are available in the directory:
  424.  
  425. -/pub/tridge/samba/alpha
  426. +/pub/samba/alpha
  427.  
  428.  Note that binaries are NOT included in any of the above. Samba is distributed
  429.  ONLY in source form, though binaries may be available from other sites. Recent
  430. @@ -154,7 +164,10 @@
  431.  
  432.  There are two mailing lists devoted to discussion of Samba-related matters.
  433.  There is also the newsgroup, comp.protocols.smb, which has a great deal of
  434. -discussion on Samba.
  435. +discussion on Samba. There is also a WWW site 'SAMBA Web Pages' at
  436. +http://samba.canberra.edu.au/pub/samba/samba.html, under which there is a 
  437. +comprehensive survey of Samba users. Another useful resource is the hypertext
  438. +archive of the Samba mailing list.
  439.  
  440.  Send email to listproc@anu.edu.au. Make sure the subject line is blank, and
  441.  include the following two lines in the body of the message:
  442. @@ -177,6 +190,9 @@
  443.        unsubscribe samba
  444.        unsubscribe samba-announce
  445.  
  446. +The From: line in your message MUST be the same address you used when you
  447. +subscribed.
  448. +
  449.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  450.  * 6: Something's gone wrong - what should I do?
  451.  
  452. @@ -184,7 +200,9 @@
  453.  DO NOT post messages on mailing lists or in newsgroups until you have carried
  454.  out the first three steps given here!
  455.  
  456. -Firstly, see if there are any likely looking entries in this FAQ!
  457. +Firstly, see if there are any likely looking entries in this FAQ! If you have
  458. +just installed Samba, have you run through the checklist in DIAGNOSIS.txt? It
  459. +can save you a lot of time and effort.
  460.  
  461.  Secondly, read the man pages for smbd, nmbd and smb.conf, looking for topics
  462.  that relate to what you are trying to do.
  463. @@ -195,10 +213,20 @@
  464.  debugging information - usually level 2 or level 3 provide ample debugging
  465.  info. Inspect these logs closely, looking particularly for the string "Error:".
  466.  
  467. -If you successfully solve a problem, please mail me a succinct description of
  468. -the symptom, the problem and the solution, so I can incorporate it in the next
  469. -version of the FAQ.
  470. -
  471. +Fourthly, if you still haven't got anywhere, ask the mailing list or newsgroup.
  472. +In general nobody minds answering questions provided you have followed the
  473. +preceding steps. It might be a good idea to scan the archives of the mailing
  474. +list, which are available through the Samba web site described in the previous
  475. +section.
  476. +
  477. +If you successfully solve a problem, please mail the FAQ maintainer a succinct 
  478. +description of the symptom, the problem and the solution, so I can incorporate 
  479. +it in the next version.
  480. +
  481. +If you make changes to the source code, _please_ submit these patches so that
  482. +everyone else gets the benefit of your work. This is one of the most important
  483. +aspects to the maintainence of Samba. Send all patches to 
  484. +samba-bugs@samba.anu.edu.au, not Andrew Tridgell or any other individual. 
  485.  
  486.  ===============================================================================
  487.  SECTION TWO: Compiling and installing Samba on a Unix host
  488. @@ -211,7 +239,7 @@
  489.  * 1: I can't see the Samba server in any browse lists!
  490.  
  491.  *** Until the FAQ can be updated, please check the file:
  492. -*** ftp://nimbus.anu.adu.au/pub/tridge/samba/BROWSING.txt
  493. +*** ftp://samba.anu.edu.au/pub/samba/BROWSING.txt
  494.  *** for more information on browsing. 
  495.  
  496.  If your GUI client does not permit you to select non-browsable servers, you may
  497. @@ -225,7 +253,7 @@
  498.  
  499.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  500.  * 2: Some files that I KNOW are on the server doesn't show up when I view the
  501. -directories from my client!
  502. +     directories from my client!
  503.  
  504.  If you check what files are not showing up, you will note that they are files
  505.  which contain upper case letters or which are otherwise not DOS-compatible (ie,
  506. @@ -303,7 +331,9 @@
  507.  stuff for several reasons, including the fact that the whole concept of a
  508.  primary domain controller and "logging in to a network" doesn't fit well with
  509.  clients possibly running on multiuser machines (such as users of smbclient
  510. -under Unix).
  511. +under Unix). Having said that, several developers are working hard on 
  512. +building it in to the next major version of Samba. If you can contribute, 
  513. +send a message to samba-bugs!
  514.  
  515.  Seeing this message should not affect your ability to mount redirected disks
  516.  and printers, which is really what all this is about.
  517. @@ -351,6 +381,26 @@
  518.  Microsoft products, particularly Excel 5 and Word for Windows 6. These should
  519.  have all been solved. If not then please let Andrew Tridgell know.
  520.  
  521. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  522. +* 9: My "server string" doesn't seem to be recognized, my client reports the
  523. +     default setting, eg. "Samba 1.9.15p4", instead of what I have changed it
  524. +     to in the smb.conf file.
  525. +You need to use the -C option in nmbd. The "server string" affects
  526. +what smbd puts out and -C affects what nmbd puts out. In a future
  527. +version these will probably be combined and -C will be removed, but
  528. +for now use -C
  529. +
  530. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  531. +* 10: When I attempt to get a listing of available resources from the Samba
  532. +      server, my client reports
  533. +      "This server is not configured to list shared resources".
  534. +
  535. +Your guest account is probably invalid for some reason. Samba uses
  536. +the guest account for browsing in smbd.  Check that your guest account is
  537. +valid.
  538. +
  539. +See also 'guest account' in smb.conf man page.
  540.  
  541.  ===============================================================================
  542.  SECTION FOUR: Specific client problems
  543. @@ -381,11 +431,71 @@
  544.  
  545.  Rob
  546.  
  547. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  548. +* 2: I am getting a "Session request failed (131,130)" error when I try to
  549. +     connect to my Win95 PC with smbclient. I am able to connect from the PC
  550. +     to the Samba server without problems. What gives?
  551. +
  552. +The following answer is provided by John E. Miller:
  553. +
  554. +I'll assume that you're able to ping back and forth between the machines by
  555. +IP address and name, and that you're using some security model where you're
  556. +confident that you've got user IDs and passwords right.  The logging options
  557. +(-d3 or greater) can help a lot with that.  DNS and WINS configuration can
  558. +also impact connectivity as well.
  559. +
  560. +Now, on to 'scope id's.  Somewhere in your Win95 TCP/IP network configuration
  561. +(I'm too much of an NT bigot to know where it's located in the Win95 setup,
  562. +but I'll have to learn someday since I teach for a Microsoft Solution Provider
  563. +Authorized Tech Education Center - what an acronym...) [Note: It's under
  564. +Control Panel | Network | TCP/IP | WINS Configuration] there's a little text
  565. +entry field called something like 'Scope ID'. 
  566. +
  567. +This field essentially creates 'invisible' sub-workgroups on the same wire.
  568. +Boxes can only see other boxes whose Scope IDs are set to the exact same
  569. +value - it's sometimes used by OEMs to configure their boxes to browse only
  570. +other boxes from the same vendor and, in most environments, this field should
  571. +be left blank.  If you, in fact, have something in this box that EXACT value
  572. +(case-sensitive!) needs to be provided to smbclient and nmbd as the -i 
  573. +(lowercase) parameter. So, if your Scope ID is configured as the string
  574. +'SomeStr' in Win95 then you'd have to use smbclient -iSomeStr <otherparms>
  575. +in connecting to it.  
  576. +
  577. +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  578. +* 3: How do I synchronize my PC's clock with my Samba server? 
  579. +
  580. +To syncronize your PC's clock with your Samba server:
  581. +
  582. +* Copy timesync.pif to your windows directory
  583. +  * timesync.pif can be found at:
  584. +    http://samba.canberra.edu.au/pub/samba/binaries/miscellaneous/timesync.pif
  585. +* Add timesync.pif to your 'Start Up' group/folder
  586. +* Open the properties dialog box for the program/icon
  587. +  * Make sure the 'Run Minimized' option is set in program 'Properties' 
  588. +  * Change the command line section that reads \\sambahost to reflect the name
  589. +    of your server.
  590. +* Close the properties dialog box by choosing 'OK'
  591. +
  592. +Each time you start your computer (or login for Win95) your PC will
  593. +synchronize it's clock with your Samba server.
  594.  
  595.  ===============================================================================
  596.  SECTION FIVE: Specific client application problems
  597.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  598. +* 1: MS Office Setup reports "Cannot change properties of the file named:
  599. +                                      X:\MSOFFICE\SETUP.INI"
  600.  
  601. +When installing MS Office on a Samba drive for which you have admin user
  602. +permissions, ie. admin users = <username>, you will find the setup program
  603. +unable to complete the installation.
  604. +
  605. +To get around this problem, do the installation without admin user permissions
  606. +The problem is that MS Office Setup checks that a file is rdonly by trying to
  607. +open it for writing.
  608. +
  609. +Admin users can always open a file for writing, as they run as root. 
  610. +You just have to install as a non-admin user and then use "chown -R" to fix
  611. +the owner.
  612.  
  613.  ===============================================================================
  614.  SECTION SIX: Miscellaneous
  615. @@ -394,5 +504,3 @@
  616.  
  617.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  618.  Maintained By Paul Blackman, Email:ictinus@lake.canberra.edu.au
  619. -
  620. -
  621. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/docs/samba.lsm samba-1.9.16alpha2/docs/samba.lsm
  622. --- samba-1.9.16alpha1/docs/samba.lsm    Mon Nov 27 10:55:33 1995
  623. +++ samba-1.9.16alpha2/docs/samba.lsm    Tue May 28 23:37:23 1996
  624. @@ -10,8 +10,8 @@
  625.  AuthorEmail  = samba-bugs@anu.edu.au
  626.  Maintainer   = Andrew Tridgell
  627.  MaintEmail   = samba-bugs@anu.edu.au
  628. -Site1        = nimbus.anu.edu.au
  629. -Path1        = pub/tridge/samba/
  630. +Site1        = samba.anu.edu.au
  631. +Path1        = pub/samba/
  632.  File1        = samba-latest.tar.gz
  633.  FileSize1    = 200K
  634.  Required1    = Ansi-C compiler and a TCP/IP network.
  635. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/docs/smbclient.1 samba-1.9.16alpha2/docs/smbclient.1
  636. --- samba-1.9.16alpha1/docs/smbclient.1    Tue Feb 20 12:11:15 1996
  637. +++ samba-1.9.16alpha2/docs/smbclient.1    Mon May  6 10:35:43 1996
  638. @@ -36,6 +36,9 @@
  639.  .B -n
  640.  .I netbios name
  641.  ] [
  642. +.B -W
  643. +.I workgroup
  644. +] [
  645.  .B -O
  646.  .I socket options
  647.  ] [
  648. @@ -321,6 +324,14 @@
  649.  By default, the client will use the local machine's hostname (in
  650.  uppercase) as its netbios name. This parameter allows you to override
  651.  the host name and use whatever netbios name you wish.
  652. +.RE
  653. +
  654. +.B -W
  655. +.I workgroup
  656. +
  657. +.RS 3
  658. +Override what workgroup is used for the connection. This may be needed
  659. +to connect to some servers.
  660.  .RE
  661.  
  662.  .B -p
  663. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/examples/misc/extra_smbstatus samba-1.9.16alpha2/examples/misc/extra_smbstatus
  664. --- samba-1.9.16alpha1/examples/misc/extra_smbstatus    Thu Feb 22 12:04:40 1996
  665. +++ samba-1.9.16alpha2/examples/misc/extra_smbstatus    Sat May 18 15:02:23 1996
  666. @@ -10,28 +10,31 @@
  667.  if ($1 == "-p") then
  668.    smbstatus -p |sort -u
  669.  else if ($1 == "-c") then
  670. -  echo There are `smbstatus -p |sort -u |grep -n -v z |grep -c :` unique
  671. -smbd processes running.
  672. +  echo There are `smbstatus -p |sort -u |grep -n -v z |grep -c :` unique smbd processes running.
  673.   else if ($1 == "-l") then
  674. -  echo `date '+ %d/%m/%y %H:%M:%S'` `smbstatus -p |sort -u |grep -n -v z
  675. -|grep -c :` >>$2
  676. +  echo `date '+ %d/%m/%y %H:%M:%S'` `smbstatus -p |sort -u |grep -n -v z |grep -c :` >>$2
  677. +else if ($1 == "-cs") then
  678. +  echo There are `smbstatus |awk '$1==share {n++;} END {print n}' share=$2` concurrent connections to share: $2
  679. +else if ($1 == "-csl") then
  680. + echo `date '+ %d/%m/%y %H:%M:%S'` `smbstatus |awk '$1==share {n++;} END {print n}' share=$2` >>$3
  681.  else
  682. -  smbstatus |sort +3 -4 -u
  683. + echo "'smbstat -c'         ==> Count unique smbd processes."
  684. + echo "'smbstat -p'         ==> List unique smbd processes."
  685. + echo "'smbstat -l logfile' ==> Append a log entry for the number of"
  686. + echo "                          concurrent and unique processes to logfile."
  687. + echo "'smbstat -cs sharename'"
  688. + echo "                     ==> Count processes connected to sharename (assumed unique)"
  689. + echo "'smbstat -csl sharename logfile'"
  690. + echo "                     ==> Append a log entry for the number of concurrent"
  691. + echo "                         processes connected to sharename (assumed unique)"
  692.  endif
  693.  ******
  694.  
  695. -The '-p' option was just to show unique PIDs.
  696. +Run this script from cron eg.
  697.  
  698. -The more important ones are the '-c' and '-l' options '-c' just counts
  699. -the number of unique smbd's, While '-l' logs this count with date and
  700. -time to a log file specified on the command line.  I'm using '-l' at
  701. -the moment with cron to give me an idea of usage/max connections etc.
  702. -I was also thinking of doing a log for individual/specified services.
  703. +0,5,10,15,20,25,30,35,40,50,55 * * * * /usr/local/samba/bin/smbstat -l /usr/local/samba/var/smbdcount.log
  704.  
  705. -The default (last) option was to show unique PIDs with user names.
  706. -Unfortunately this still lists all file locks etc.  This would be
  707. -better with a 'no locked files' option from smbstatus (or is there one
  708. -that I didn't see)
  709. +and you get a good idea of usage over time.
  710.  
  711.  Cheers,
  712.  ~^ MIME OK ^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~
  713. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/examples/misc/wall.perl samba-1.9.16alpha2/examples/misc/wall.perl
  714. --- samba-1.9.16alpha1/examples/misc/wall.perl    Sat Feb 24 18:54:24 1996
  715. +++ samba-1.9.16alpha2/examples/misc/wall.perl    Sun May  5 17:18:36 1996
  716. @@ -6,40 +6,64 @@
  717.  #@(#) ...using "smbclient -M" message to winpopup service.
  718.  #@(#) Default usage is to message every connected PC.
  719.  #@(#) Alternate usage is to message every pc on the argument list.
  720. -#@(#)    Hacked up by Keith Farrar <farrar@parc.xerox.com>
  721. +#@(#)  Hacked up by Keith Farrar <farrar@parc.xerox.com>
  722.  #
  723. +# Cleanup and corrections by
  724. +# Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
  725. +# Message to send can be now also fed (quietly) from stdin; a pipe will do.
  726.  #=============================================================================
  727. -$smbstatus = "/usr/local/bin/smbstatus";
  728. -$smbclient = "/usr/local/bin/smbclient";
  729.  
  730. -print STDOUT "\nEnter message for Samba clients of this host\n";
  731. -print STDOUT "(terminated with single '.' or end of file):\n";
  732. +$smbstatus = "/usr/local/bin/smbstatus";
  733. +$smbshout = "/usr/local/bin/smbclient -M";
  734.  
  735. -while ( <STDIN> ) {
  736. -    /^\.$/ && last;
  737. -    push(@message,  $_);
  738. +if (@ARGV) {
  739. +    @clients = @ARGV;
  740. +    undef @ARGV;
  741.  }
  742. +else {  # no clients specified explicitly
  743. +    open(PCLIST, "$smbstatus |") || die "$smbstatus failed!.\n$!\n";
  744. +    while(<PCLIST>) {
  745. +    last if /^Locked files:/;
  746. +    split(' ', $_, 6);
  747. +        # do not accept this line if less then six fields
  748. +        next unless $_[5];
  749. +        # if you have A LOT of clients you may speed things up by
  750. +        # checking pid - no need to look further if this pid was already
  751. +        # seen;  left as an exercise :-)
  752. +        $client = $_[4];
  753. +    next unless $client =~ /^\w+\./;       # expect 'dot' in a client name
  754. +    next if grep($_ eq $client, @clients); # we want this name once
  755. +    push(@clients, $client);
  756. +    }
  757. +    close(PCLIST);
  758. +}
  759. +
  760. +if (-t) {
  761. +    print <<'EOT';
  762.  
  763. -if ( $ARGV[0] ne "" ) {
  764. -    $debug && print STDOUT "Was given args: \n\t @ARGV\n";
  765. -    foreach $client ( @ARGV ) {
  766. -        $pcclient{$client} = $client;
  767. -    }
  768. -} else {
  769. -    open( PCLIST, "$smbstatus | /bin/awk '/^[a-z]/ {print $5}' | /bin/sort | /bin/uniq|");
  770. -    while ( <PCLIST> ) {
  771. -        /^[a-z]+[a-z0-9A-Z-_]+.+/ || next;
  772. -        ($share, $user, $group, $pid, $client, @junk) = split;
  773. -        $pcclient{$client} = $client;
  774. -    }
  775. -    close(PCLIST);
  776. +Enter message for Samba clients of this host
  777. +(terminated with single '.' or end of file):
  778. +EOT
  779. +
  780. +    while (<>) {
  781. +    last if /^\.$/;
  782. +    push(@message, $_);
  783. +    }
  784. +}
  785. +else { # keep quiet and read message from stdin
  786. +    @message = <>;
  787.  }
  788.  
  789. -foreach $pc ( keys(%pcclient) ) {
  790. -    print STDOUT "Sending message ";
  791. -    $debug && print STDOUT " <@message> \n";
  792. -    print STDOUT "To <$pc>\n";
  793. -    open(SENDMSG,"|$smbclient -M $pc") || next;
  794. +foreach(@clients) {
  795. +##    print "To $_:\n";
  796. +    if (open(SENDMSG,"|$smbshout $_")) {
  797.      print SENDMSG @message;
  798.      close(SENDMSG);
  799. +    }
  800. +    else {
  801. +    warn "Cannot notify $_ with $smbshout:\n$!\n";
  802. +    }
  803.  }
  804. +
  805. +exit 0;
  806. +
  807. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/.cvsignore samba-1.9.16alpha2/source/.cvsignore
  808. --- samba-1.9.16alpha1/source/.cvsignore    Thu Jan  1 10:00:00 1970
  809. +++ samba-1.9.16alpha2/source/.cvsignore    Sun May  5 21:08:57 1996
  810. @@ -0,0 +1,10 @@
  811. +Makefile.ajt
  812. +nmbd
  813. +nmblookup
  814. +smbclient
  815. +smbd
  816. +smbpasswd
  817. +smbrun
  818. +smbstatus
  819. +testparm
  820. +testprns
  821. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/Makefile samba-1.9.16alpha2/source/Makefile
  822. --- samba-1.9.16alpha1/source/Makefile    Thu Feb 29 00:11:48 1996
  823. +++ samba-1.9.16alpha2/source/Makefile    Mon May  6 10:35:45 1996
  824. @@ -264,6 +264,7 @@
  825.  
  826.  # This is for HP-UX. Note that some systems don't like the -Aa switch.
  827.  # contributed by Pasi.Kaara@atk.tpo.fi
  828. +# You will need -DREPLACE_GETPASS if you use smb encryption
  829.  # FLAGSM = -DHPUX -Aa -D_HPUX_SOURCE -D_POSIX_SOURCE
  830.  # LIBSM = 
  831.  
  832. @@ -452,6 +453,13 @@
  833.  # FLAGSM = -DNEWS42 -DKANJI=\"sjis\"
  834.  # LIBSM =
  835.  
  836. +
  837. +# This is for SONY NEWS, NEWS-OS 6.1.x
  838. +# contributed by kobo@sm.sony.co.jp (Yoichi Kobori)
  839. +# FLAGSM = -Xa -DSVR4 -DNEWS61 -DSHADOW_PWD -DNETGROUP -DGETTIMEOFDAY1 -DKANJI=\"euc\"\ -D_SONYILS_H
  840. +# LIBSM = -lsocket -lnsl
  841. +
  842. +
  843.  # This is for OS/2 using EMX 0.9b
  844.  # Contributed by jasonr@pec.co.nz (Jason Rumney)
  845.  # FLAGSM = -DOS2
  846. @@ -495,7 +503,7 @@
  847.  UTILOBJ = $(UTILOBJ1) md4.o loadparm.o params.o pcap.o username.o
  848.  PARAMOBJ = $(UTILOBJ) ufc.o smbpass.o access.o 
  849.  SMBDOBJ1 = $(PARAMOBJ) trans2.o message.o dir.o printing.o locking.o
  850. -SMBDOBJ2 = ipc.o reply.o mangle.o chgpasswd.o password.o
  851. +SMBDOBJ2 = ipc.o reply.o mangle.o chgpasswd.o password.o quotas.o
  852.  SMBDOBJ = $(SMBDOBJ1) $(SMBDOBJ2) $(VTP_OBJ)
  853.  
  854.  .SUFFIXES:
  855. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/Makefile.OS2 samba-1.9.16alpha2/source/Makefile.OS2
  856. --- samba-1.9.16alpha1/source/Makefile.OS2    Thu Jan  1 10:00:00 1970
  857. +++ samba-1.9.16alpha2/source/Makefile.OS2    Sat May  4 17:50:25 1996
  858. @@ -0,0 +1,535 @@
  859. +###########################################################################
  860. +# Makefile for Samba SMB client/server for unix
  861. +# Copyright Andrew Tridgell 1992,1993,1994
  862. +###########################################################################
  863. +
  864. +# The base manpages directory to put the man pages in
  865. +# Note: $(MANDIR)/man1, $(MANDIR)/man5 and $(MANDIR)/man8 must exist.
  866. +MANDIR = /usr/local/man
  867. +
  868. +# The directories to put things in. If you use multiple
  869. +# architectures or share the samba binaries across NFS then
  870. +# you will probably want to change this layout.
  871. +BASEDIR = .
  872. +BINDIR = $(BASEDIR)
  873. +LIBDIR = $(BASEDIR)
  874. +VARDIR = $(BASEDIR)
  875. +
  876. +# WARNING: If you are upgrading, make sure you put all the files
  877. +# in the right spot! The default positions have changed!
  878. +
  879. +
  880. +# The permissions to give the executables
  881. +INSTALLPERMS = 0755
  882. +
  883. +# Add any optimisation or debugging flags here
  884. +# add -DSYSLOG for syslog support
  885. +FLAGS1 = -O
  886. +LIBS1 = 
  887. +
  888. +# You will need to use a ANSI C compiler. This means under SunOS 4 you can't 
  889. +# use cc, instead you will have to use gcc. 
  890. +CC = gcc
  891. +
  892. +# This may help with some versions of make
  893. +# SHELL = /bin/sh
  894. +
  895. +# The following can be useful for compiling on multiple architectures
  896. +srcdir=.
  897. +VPATH=$(srcdir)
  898. +
  899. +# set these to where to find various files
  900. +# These can be overridden by command line switches (see smbd(8))
  901. +# or in smb.conf (see smb.conf(5))
  902. +SMBLOGFILE = $(VARDIR)/log.smb
  903. +NMBLOGFILE = $(VARDIR)/log.nmb
  904. +CONFIGFILE = $(LIBDIR)/smb.cfg
  905. +LMHOSTSFILE = $(LIBDIR)/lmhosts
  906. +
  907. +# the directory where lock files go
  908. +LOCKDIR = /tmp/samba
  909. +
  910. +# set this to the default group you want your machine to appear in
  911. +# for browsing. This can also be set in nmbd (see nmbd(8))
  912. +# NOTE: If you set it to * then nmbd will try to find a workgroup on
  913. +# the local net
  914. +WORKGROUP = WORKGROUP
  915. +
  916. +# set this to the name of the default account, which is the one
  917. +# to use when no username or password is specified.  This can be overridden
  918. +# in the runtime configuration file (see smb.conf(5))
  919. +# NOTE: The account "nobody" may not be a good one as
  920. +# on many unixes it may not be able to print. Thus you
  921. +# might have to create a separate guest account that can print.
  922. +GUESTACCOUNT = nobody
  923. +
  924. +# where you are going to have the smbrun binary. This defaults to the 
  925. +# install directory. This binary is needed for correct printing
  926. +# and magic script execution. This should be an absolute path!
  927. +# Also not that this should include the name "smbrun" on the end (the
  928. +# name of the executable)
  929. +SMBRUN = $(BINDIR)/smbrun.exe
  930. +
  931. +# This is for AFS authentication.  If you use AFS then set AFS_BASE 
  932. +# according to your system layout, and uncomment the other lines as well.
  933. +# AFS_BASE = /usr/afsws
  934. +# AFS_FLAGS = -DAFS_AUTH -I$(AFS_BASE)/include
  935. +# AFS_LIBDIR = $(AFS_BASE)/lib
  936. +# NOTE: You may need to add -laudit in the line below
  937. +# AFS_LIBS = -L$(AFS_LIBDIR) -L$(AFS_LIBDIR)/afs -lkauth -lprot -lubik \
  938. +#                -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err \
  939. +#                $(AFS_LIBDIR)/afs/util.a
  940. +
  941. +# This is for DCE/DFS enablement. Uncomment this so that smbd can
  942. +# operate as an authenticated user identity to operate on files that
  943. +# live in the DCE Distributed Filesystem.
  944. +# DCE_BASE = /opt/dcelocal
  945. +# DCE_FLAGS = -I$(DCE_BASE)/include
  946. +# DCE_LIBDIR = -L$(DCE_BASE)/lib
  947. +# DCE_LIBS =
  948. +
  949. +# This is for SMB encrypted (lanman) passwords.
  950. +# you may wish to add -DREPLACE_GETPASS if your getpass() is limited
  951. +# to 8 chars
  952. +# DES_BASE=/usr/local/libdes
  953. +# DES_FLAGS= -I$(DES_BASE)
  954. +# DES_LIB= -L$(DES_BASE) -ldes
  955. +# PASSWD_FLAGS=-DSMB_PASSWD=\"$(BINDIR)/smbpasswd\" -DSMB_PASSWD_FILE=\"$(BASEDIR)/private/smbpasswd\"
  956. +
  957. +######################################
  958. +# VTP-Support
  959. +#
  960. +# uncomment the following two lines to enable VTP-Support
  961. +#VTP_FLAGS = -DWITH_VTP
  962. +#VTP_OBJ = vt_mode.o
  963. +######################################
  964. +
  965. +
  966. +#####################################
  967. +# WHICH OPERATING SYSTEM?
  968. +# UNCOMMENT ONE OF THE SECTIONS BELOW
  969. +# MAKE SURE ONLY *ONE* IS UNCOMMENTED
  970. +#
  971. +# The following are additional flags that may apply
  972. +#   -DNETGROUP if your machine supports yp netgroups
  973. +#   -DSHADOW_PWD if you are using shadow passwords
  974. +#   -DGETPWANAM if you wish to use getpwanam() call
  975. +#   -DPWDAUTH if you have and want to use the pwdauth() call
  976. +#   -DUFC_CRYPT if you want the fast crypt routine
  977. +#   -DALLOW_CHANGE_PASSWORD if you want users to be able to set their password
  978. +#                           remotely (only works on some systems)
  979. +#   -DQUOTAS for quota support in disk_free(). This probably only works 
  980. +#            on some systems.
  981. +#
  982. +#    NOTE: GETPWANAM & PWDAUTH are mutually exclusive, if you
  983. +#          Define one, you should NOT define the other.
  984. +#####################################
  985. +
  986. +#####################################
  987. +# for the JAPANESE EXTENSION
  988. +# select filename's code set for KANJI/KANA in UNIX,
  989. +# apply the following flag
  990. +#   -DKANJI=\"<code>\"
  991. +#        <code> is select character code set for JAPAN.
  992. +#             sjis:   if your machine support SJIS
  993. +#             euc:      if your machine support EUC
  994. +#             jis7:     if your machine support JIS7
  995. +#             jis8:     if your machine support JIS8
  996. +#             junet:    if your machine support jis7 + junet rule
  997. +#             hex:      if your machine only support 7 bits ascii filename only
  998. +#                       convert to hexdecimal code preseeding ':'.
  999. +# see also README.jis
  1000. +######################################
  1001. +
  1002. +
  1003. +# This is for SUNOS 4. Use the SUNOS5 entry for Solaris 2.
  1004. +# Note that you cannot use Suns "cc" compiler
  1005. +# as it's not an Ansi-C compiler. Get gcc or acc. 
  1006. +# Note that if you have adjunct passwords you may need the GETPWANAM 
  1007. +# or PWDAUTH option. There have been reports that using PWDAUTH may crash
  1008. +# your pwdauthd server so GETPWANAM is preferable (and probably faster)
  1009. +# contributed by Andrew.Tridgell@anu.edu.au
  1010. +# FLAGSM = -DSUNOS4
  1011. +# LIBSM =   
  1012. +
  1013. +
  1014. +# Use this for Linux with shadow passwords
  1015. +# contributed by Andrew.Tridgell@anu.edu.au
  1016. +# add -DLINUX_BIGCRYPT is you have shadow passwords but don't have the
  1017. +# right libraries and includes
  1018. +# FLAGSM = -DLINUX -DSHADOW_PWD
  1019. +# LIBSM = -lshadow
  1020. +
  1021. +# Use this for Linux without shadow passwords
  1022. +# contributed by Andrew.Tridgell@anu.edu.au
  1023. +# FLAGSM = -DLINUX
  1024. +# LIBSM = 
  1025. +
  1026. +
  1027. +# This is for SUNOS5 (also known as Solaris 2)
  1028. +# contributed by Andrew.Tridgell@anu.edu.au
  1029. +# FLAGSM = -DSUNOS5 -DSHADOW_PWD -DNETGROUP 
  1030. +# LIBSM = -lsocket -lnsl
  1031. +
  1032. +
  1033. +# This is for SVR4
  1034. +# Contributed by mark@scot1.ucsalf.ac.uk
  1035. +# FLAGSM = -DSVR4 -DSHADOW_PWD -DALLOW_CHANGE_PASSWORD
  1036. +# LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
  1037. +
  1038. +
  1039. +# This is for the Motorola 88xxx/9xx range of machines
  1040. +# Contributed by RPE@monnet.com
  1041. +# FLAGSM = -DSVR4 -DSHADOW_PWD -DGETTIMEOFDAY1
  1042. +# LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
  1043. +
  1044. +
  1045. +# This is for UNIXWARE
  1046. +# FLAGSM = -Xa -DSVR4 -DSHADOW_PWD
  1047. +# LIBSM = -lsocket -lnsl -lc -L/usr/ucblib -lucb
  1048. +
  1049. +
  1050. +# This is for ULTRIX. Add -DULTRIX_AUTH for Ultrix enhanced security.
  1051. +# contributed by iversen@dsfys1.fi.uib.no
  1052. +# FLAGSM = -DULTRIX
  1053. +# LIBSM =   
  1054. +
  1055. +
  1056. +# This is for OSF1 (Alpha)
  1057. +# contributed by errath@balu.kfunigraz.ac.at
  1058. +# NOTE: You may need -warning_unresolved if you get unresolved symbols
  1059. +# FLAGSM = -DOSF1
  1060. +# LIBSM =
  1061. +
  1062. +# This is for OSF1 with DCE/DFS
  1063. +# contributed by Jim Doyle <doyle@oec.com>
  1064. +# FLAGSM = -DOSF1 -DDFS_AUTH -DSIGCLD_IGNORE -DNO_SIGNAL_TEST
  1065. +# LIBSM = -ldce -lpthreads -lmach -lc_r
  1066. +
  1067. +# This is for OSF1 (Alpha) with NIS and Fast Crypt
  1068. +# contributed by David Gardiner <dgardine@cssip.edu.au>
  1069. +# FLAGSM = -DOSF1 -DNETGROUP -DUFC_CRYPT
  1070. +# LIBSM =
  1071. +
  1072. +
  1073. +# This is for OSF1 (Alpha) V2.0 Enhanced Security 
  1074. +# contributed by Udo Linauer <ul@eacpc4.tuwien.ac.at>
  1075. +# FLAGSM = -DOSF1 -DOSF1_ENH_SEC
  1076. +# LIBSM = -lsecurity
  1077. +
  1078. +
  1079. +# This is for AIX
  1080. +# contributed by tomc@osi.curtin.edu.au
  1081. +# FLAGSM = -DAIX
  1082. +# LIBSM =   
  1083. +
  1084. +# This is for AIX 3.2.5 with DCE/DFS
  1085. +# contributed by Jim Doyle <doyle@oec.com>
  1086. +# FLAGSM = -DAIX -DDFS_AUTH -DSIGCLD_IGNORE -DNO_SIGNAL_TEST
  1087. +# LIBSM = -lc_r -ldce -lpthreads
  1088. +# CC = cc_r
  1089. +
  1090. +# This is for BSDI 
  1091. +# contributed by tomh@metrics.com
  1092. +# versions of BSDI prior to 2.0 may need to add -DUSE_F_FSIZE for 
  1093. +# disk usage stats to be correct
  1094. +# FLAGSM = -DBSDI
  1095. +# LIBSM =   
  1096. +
  1097. +
  1098. +# This is for NetBSD. Add -DNETBSD_1_0 if you are using 1.0
  1099. +# contributed by noses@oink.rhein.de
  1100. +# FLAGSM = -DNETBSD -DSHADOW_PWD
  1101. +# LIBSM = -lcrypt 
  1102. +
  1103. +
  1104. +# This is for SEQUENT. 
  1105. +# Contributed by fwk@ix.netcom.com (Frank Keeney) and 
  1106. +# rpwillia@Pentagon-EMH6.army.mil (Ray Williams)
  1107. +# tested on DYNIX/ptx(R) V2.1.0
  1108. +# FLAGSM = -DSEQUENT -DSHADOW_PWD -DHAVE_TIMEZONE
  1109. +# LIBSM = -lrpc -lsocket -lPW -linet -lnsl -lseq -lsec
  1110. +
  1111. +
  1112. +# This is for HP-UX. Note that some systems don't like the -Aa switch.
  1113. +# contributed by Pasi.Kaara@atk.tpo.fi
  1114. +# FLAGSM = -DHPUX -Aa -D_HPUX_SOURCE -D_POSIX_SOURCE
  1115. +# LIBSM = 
  1116. +
  1117. +# This is for HP-UX with DCE/DFS
  1118. +# contributed by Jim Doyle <doyle@oec.com>
  1119. +# FLAGSM = -DHPUX -Aa -D_HPUX_SOURCE -D_POSIX_SOURCE -DDFS_AUTH -D_REENTRANT -I/usr/include/reentrant
  1120. +# LIBSM = -ldce -lM -lc_r
  1121. +
  1122. +
  1123. +# This is for SGI.
  1124. +# contributed by lpc@solomon.technet.sg (Michael Chua)
  1125. +# FOR SGI IRIX 4.x.x, use the following line
  1126. +# FLAGSM = -DSGI -DHAVE_TIMEZONE
  1127. +# LIBSM = -lsun
  1128. +
  1129. +# FOR SGI IRIX 5.x.x, use this line instead
  1130. +# FLAGSM = -DSGI5 -DSHADOW_PWD -DHAVE_TIMEZONE
  1131. +# LIBSM =
  1132. +
  1133. +
  1134. +# This is for FreeBSD
  1135. +# contributed by kuku@acds.physik.rwth-aachen.de
  1136. +# NOTE: You may need to add -DBSD44 if you have password problems
  1137. +# FLAGSM = -DFreeBSD
  1138. +# LIBSM = -lcrypt 
  1139. +
  1140. +
  1141. +# This is for NEXTSTEP Release 2.X
  1142. +# No Posix.
  1143. +# contributed by brad@cac.washington.edu (Brad Greer)
  1144. +# FLAGSM = -DNEXT2 
  1145. +# LIBSM = 
  1146. +
  1147. +# This is for NEXTSTEP Release 3.0 and greater (including OPENSTEP for Mach).
  1148. +# contributed by brad@cac.washington.edu (Brad Greer)
  1149. +# additional configuration by pmarcos@next.com (Paul Marcos)
  1150. +# For compiling n-way fat executables, you should append the appropriat -arch 
  1151. +# flags to the FLAGSM variable.  Valid flags are:
  1152. +#    -arch m68k
  1153. +#    -arch i386
  1154. +#    -arch hppa
  1155. +#    -arch sparc
  1156. +# To compile 4-way fat, you would append
  1157. +#    -arch m68k -arch i386 -arch hppa -arch sparc
  1158. +# FLAGSM = -DNEXT3_0
  1159. +# LIBSM = 
  1160. +
  1161. +
  1162. +# NOTE: ISC is also known as "INTERACTIVE"
  1163. +# This is for Sunsoft ISC SVR3V4 running in POSIX mode
  1164. +# contributed by pim@cti-software.nl (Pim Zandbergen)
  1165. +# FLAGSM = -posix -D_SYSV3 -DISC -DSHADOW_PWD
  1166. +# LIBSM = -lsec -lcrypt -linet
  1167. +
  1168. +# This is for Sunsoft ISC SVR3V4 running in iBCS2 mode
  1169. +# contributed by pim@cti-software.nl (Pim Zandbergen)
  1170. +# FLAGSM = -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_SYSV3\
  1171. +#          -DISC -DSHADOW_PWD -DREPLACE_GETWD -DREPLACE_RENAME
  1172. +# LIBSM = -lsec -lcrypt -linet -lcposix
  1173. +
  1174. +
  1175. +# This is for A/UX 3.0
  1176. +# Contributed by root@dolphin.csudh.edu (Jon S. Stevens)
  1177. +# FLAGSM = -DAUX
  1178. +# LIBSM =
  1179. +
  1180. +# This is for Altos Series 386/1000
  1181. +# Contributed by cal@zls.com
  1182. +# FLAGSM = -DALTOS -DHAS_RDCHK
  1183. +# LIBSM = -lsocket -lxenix
  1184. +
  1185. +
  1186. +#Note: The SCO entries require the libcrypt library. You can get it via
  1187. +#anonymous ftp from ftp.sco.com:/SLS/lng225b.* or ftp.uu.net:/vendors/sco
  1188. +#
  1189. +# Use this for SCO with shadow passwords. Tested on "Open enterprise 3.0"
  1190. +# SCO changes from Heinz Mauelshagen (mauelsha@ez.da.telekom.de)
  1191. +# FLAGSM = -DSCO -DSHADOW_PWD -DNETGROUP
  1192. +# LIBSM = -lyp -lrpc -lyp -lsec -lsocket -lcrypt_i -lintl
  1193. +
  1194. +# Use this for SCO with shadow passwords, without YP.
  1195. +# Tested on "Open Enterprise Server 3.0" (John Owens john@micros.com)
  1196. +# Also, use "CC = cc" above.
  1197. +# FLAGSM = -DSCO -DSHADOW_PWD
  1198. +# LIBSM = -lsec -lsocket -lcrypt_i
  1199. +
  1200. +# Use this for SCO with TCB passwords (default).
  1201. +# Tested on "Open enterprise 3.0". Contributed by lance@fox.com.
  1202. +# CC     = cc
  1203. +# FLAGSM = -DSCO -DSecureWare
  1204. +# LIBSM  = -lprot_s -lcrypt -lsocket -lm -lc_s
  1205. +
  1206. +# Use this for SCO Unix 3.2v2 (ODT 1.1) with TCB passwords (default).
  1207. +# Contributed by Stephen.Rothwell@pd.necisa.oz.au
  1208. +# N.B. this needs gcc
  1209. +# FLAGSM = -DSCO -DSecureWare -DSCO3_2_2
  1210. +# LIBSM  = -lprot -lcrypt_i -lsocket -lm -lintl
  1211. +
  1212. +# This is for the european distribution of SCO. 
  1213. +# Contributed by Urmet.Janes@gwhite.goodwin.ee
  1214. +# FLAGSM = -DSCO -DSHADOW_PWD 
  1215. +# LIBSM = -lsec -lsocket /usr/lib/libcrypt_i.a -lintl
  1216. +
  1217. +# Use this for SCO OpenServer 5 with TCB passwords (default).
  1218. +# contributed by Scott Michel <scottm@intime.intime.com>
  1219. +# CC     = cc -Xc
  1220. +# FLAGSM = -DSCO -DSecureWare -DEVEREST -DUSE_MMAP
  1221. +# LIBSM  = -lprot -lcurses -lcrypt -lsocket -lPW -lm -lx -lc_s -lc
  1222. +
  1223. +
  1224. +# This is for intergraph. 
  1225. +# contributed by cjkiick@flinx.b11.ingr.com
  1226. +# modified by ttj@sknsws61.sjo.statkart.no
  1227. +# FLAGSM = -DCLIX -D_INGR_EXTENSIONS=1
  1228. +# LIBSM = -lbsd -lc_s
  1229. +
  1230. +# This is for DGUX. 
  1231. +# Contributed by ross@augie.insci.com (Ross Andrus)
  1232. +# FLAGSM = -DDGUX 
  1233. +# LIBSM  = 
  1234. +
  1235. +# This is for Apollo Domain/OS sr10.3 (systype = BSD4.3)
  1236. +# Added 1994-07-08 Stephen C. Steel <steve@qv3donald.LeidenUniv.nl>
  1237. +# additional patches by jmi@csd.cri.dk (John Mills)
  1238. +# you may need the "-A ansi" switch to cc
  1239. +# FLAGSM = -DAPOLLO -D_INCLUDE_BSD_SOURCE -D_INCLUDE_XOPEN_SOURCE
  1240. +# LIBSM =
  1241. +
  1242. +
  1243. +# RiscIX. 
  1244. +# contributed by Jim Barry <jim@ilp.com> and 
  1245. +# Charles Gay-Jones <charlie@ilp.com>
  1246. +# FLAGSM = -DRiscIX -DNOSTRDUP
  1247. +# LIBSM =
  1248. +
  1249. +
  1250. +# This is for System V with some berkely extensions (Motorola 88k R32V3.2).
  1251. +# contributed by tonyb@plaza.ds.adp.com (Tony D. Birnseth)
  1252. +# FLAGSM = -DM88K_R3
  1253. +# LIBSM = -lgen -lbsd -lnsl
  1254. +
  1255. +
  1256. +# This is for DNIX.
  1257. +# contributed by Peter Olsson <pol@leissner.se>
  1258. +# NOTE: You may need an updated libc.a from your vendor as older
  1259. +# versions have broken mktime calls and no initgroups() call
  1260. +# NOTE2: You may need -lpasswd if you use shadow passwords
  1261. +# NOTE3: Please read the file DNIX.txt in the docs directory. It
  1262. +# contains important information about uid handling under DNIX, you may
  1263. +# need to patch your C library.
  1264. +# FLAGSM = -DDNIX -I/usr/include/bsd
  1265. +# LIBSM = -ln
  1266. +
  1267. +
  1268. +# This is for Cray, Unicos 8.0
  1269. +# contributed by velo@sesun3.epfl.ch (Martin Ouwehand)
  1270. +# FLAGSM = -DCRAY -U__STDC__ -DQUOTAS
  1271. +# LIBSM =
  1272. +
  1273. +# This is for Convex
  1274. +# contributed by Victor Balashov <balashov@cv.jinr.dubna.su>
  1275. +# and Ulrich Hahn <ulrich.hahn@zdv.uni-tuebingen.de>
  1276. +# FLAGSM= -DCONVEX -DSHADOW_PWD
  1277. +# LIBSM= 
  1278. +
  1279. +# This is for SMP_DC.OSx v1.1-94c079 on Pyramid S series
  1280. +# contributed by jeffrey@itm.org
  1281. +# FLAGSM = -DSOLARIS -DSHADOW_PWD -DBSD_COMP
  1282. +# LIBSM = -lsocket -lnsl
  1283. +
  1284. +# This is for QNX 4.22
  1285. +# Contributed by eldo@invisa.satlink.net (Eldo Loguzzo)
  1286. +# FLAGSM = -DQNX -DGUEST_SESSSETUP=1
  1287. +# LIBSM =
  1288. +
  1289. +
  1290. +# This is for SONY NEWS, NEWS-OS 4.2.x
  1291. +# contributed by sky@sm.sony.co.jp (Katushi Sato)
  1292. +# FLAGSM = -DNEWS42 -DKANJI=\"sjis\"
  1293. +# LIBSM =
  1294. +
  1295. +# This is for OS/2 using EMX 0.9b
  1296. +# Contributed by jasonr@pec.co.nz (Jason Rumney)
  1297. +FLAGSM = -DOS2
  1298. +LIBSM = -Zexe -Zbin-files -lsocket
  1299. +
  1300. +
  1301. +######################################################################
  1302. +# DON'T EDIT BELOW THIS LINE
  1303. +######################################################################
  1304. +
  1305. +CFLAGS1 = $(FLAGS1) -DSMBLOGFILE=\"$(SMBLOGFILE)\" -DNMBLOGFILE=\"$(NMBLOGFILE)\"
  1306. +CFLAGS2 = -DCONFIGFILE=\"$(CONFIGFILE)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" 
  1307. +CFLAGS3 = -DLOCKDIR=\"$(LOCKDIR)\" -DSMBRUN=\"$(SMBRUN)\"
  1308. +CFLAGS4 = -DWORKGROUP=\"$(WORKGROUP)\" -DGUEST_ACCOUNT=\"$(GUESTACCOUNT)\" 
  1309. +CFLAGS5 = $(CFLAGS1) $(CFLAGS2) $(CFLAGS3) $(CFLAGS4) $(FLAGSM) $(AFS_FLAGS) 
  1310. +CFLAGS  = $(CFLAGS5) $(DCE_FLAGS) $(DES_FLAGS) $(PASSWD_FLAGS) $(VTP_FLAGS)
  1311. +LIBS = $(LIBS1) $(LIBSM) $(DCE_LIBS) $(DES_LIB)
  1312. +
  1313. +PROGS1 = smbd smbclnt nmbd testparm testprns smbrun smbstat smbpass 
  1314. +PROGS = $(PROGS1) nmblook
  1315. +SCRIPTS = smbtar addtosmbpass
  1316. +
  1317. +all : $(PROGS)
  1318. +
  1319. +#CHECK :
  1320. +#    @$(SHELL) $(srcdir)/checkos.sh $(FLAGSM)
  1321. +#    @echo "Using CFLAGS = $(CFLAGS)"
  1322. +#    @echo "Using LIBS = $(LIBS)"
  1323. +
  1324. +INCLUDES1 = version.h local.h includes.h smb.h loadparm.h params.h smbpass.h
  1325. +INCLUDES2 = pcap.h trans2.h reply.h
  1326. +INCLUDES = $(INCLUDES1) $(INCLUDES2)
  1327. +
  1328. +UTILOBJ1 = util.o system.o charset.o kanji.o fault.o smbencrypt.o charcnv.o
  1329. +UTILOBJ = $(UTILOBJ1) md4.o loadparm.o params.o pcap.o username.o
  1330. +PARAMOBJ = $(UTILOBJ) ufc.o smbpass.o access.o 
  1331. +SMBDOBJ1 = $(PARAMOBJ) trans2.o message.o dir.o printing.o locking.o
  1332. +SMBDOBJ2 = ipc.o reply.o mangle.o chgpasswd.o password.o
  1333. +SMBDOBJ = $(SMBDOBJ1) $(SMBDOBJ2) $(VTP_OBJ)
  1334. +
  1335. +.SUFFIXES:
  1336. +.SUFFIXES: .c .o .h
  1337. +
  1338. +.c.o: $(INCLUDES)
  1339. +    @echo Compiling $*.c
  1340. +    @$(CC) $(CFLAGS) -c $(srcdir)/$*.c
  1341. +
  1342. +smbd: server.o $(SMBDOBJ)
  1343. +    @echo Linking smbd
  1344. +    @$(CC) $(CFLAGS) -o smbd server.o $(SMBDOBJ) $(LIBS) $(AFS_LIBS)
  1345. +
  1346. +smbrun: smbrun.o
  1347. +    @echo Linking smbrun
  1348. +    @$(CC) $(CFLAGS) -o smbrun smbrun.o $(LIBS)
  1349. +
  1350. +nmblook: nmblookup.o nmblib.o $(UTILOBJ)  
  1351. +    @echo Linking nmblookup
  1352. +    @$(CC) $(CFLAGS) -o nmblook nmblookup.o nmblib.o $(UTILOBJ) $(LIBS)
  1353. +
  1354. +nmbd: nameserv.o nmblib.o nmbsync.o $(PARAMOBJ) 
  1355. +    @echo Linking nmbd
  1356. +    @$(CC) $(CFLAGS) -o nmbd nameserv.o nmblib.o nmbsync.o $(PARAMOBJ) $(LIBS)
  1357. +
  1358. +smbclnt: client.o clitar.o getsmbpass.o $(UTILOBJ) 
  1359. +    @echo Linking smbclient
  1360. +    @$(CC) $(CFLAGS) -o smbclnt client.o clitar.o getsmbpass.o $(UTILOBJ) $(LIBS)
  1361. +
  1362. +smbstat: status.o $(PARAMOBJ) 
  1363. +    @echo Linking smbstatus
  1364. +    @$(CC) $(CFLAGS) -o smbstat status.o $(PARAMOBJ) $(LIBS)
  1365. +
  1366. +testparm: testparm.o $(PARAMOBJ)
  1367. +    @echo Linking testparm
  1368. +    @$(CC) $(CFLAGS) -o testparm testparm.o $(PARAMOBJ) $(LIBS)
  1369. +
  1370. +testprns: testprns.o $(PARAMOBJ)
  1371. +    @echo Linking testprns
  1372. +    @$(CC) $(CFLAGS) -o testprns testprns.o $(PARAMOBJ) $(LIBS)
  1373. +
  1374. +smbpass: smbpasswd.o getsmbpass.o $(PARAMOBJ)
  1375. +    @echo Linking smbpasswd
  1376. +    @$(CC) $(CFLAGS) -o smbpass smbpasswd.o getsmbpass.o $(PARAMOBJ) $(LIBS)
  1377. +
  1378. +install: installbin installman
  1379. +
  1380. +installbin: all
  1381. +    @$(SHELL) $(srcdir)/installbin.sh $(INSTALLPERMS) $(BASEDIR) $(BINDIR) $(LIBDIR) $(VARDIR) $(PROGS) $(SCRIPTS)
  1382. +
  1383. +# revert to the previously installed version
  1384. +revert:
  1385. +    @$(SHELL) $(srcdir)/revert.sh $(BINDIR) $(PROGS) $(SCRIPTS)
  1386. +
  1387. +installman:
  1388. +    @$(SHELL) $(srcdir)/installman.sh $(MANDIR)
  1389. +
  1390. +clean:
  1391. +    rm -f core *.o *~ $(PROGS)
  1392. +
  1393. +realclean: clean
  1394. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/change-log samba-1.9.16alpha2/source/change-log
  1395. --- samba-1.9.16alpha1/source/change-log    Thu Feb 29 00:20:01 1996
  1396. +++ samba-1.9.16alpha2/source/change-log    Wed May 29 14:28:46 1996
  1397. @@ -1757,6 +1757,8 @@
  1398.      - added more flexible GUEST_SESSSETUP to local.h and restored
  1399.      pre-p7 behaviour as default
  1400.      - released p8
  1401. +
  1402. +1.9.16: 
  1403.      - Makefile fix from Marty Leisner <leisner@sdsp.mc.xerox.com>
  1404.      - added %g and %G substitutions
  1405.      - changed IDLE_CLOSED_TIMEOUT to 60 
  1406. @@ -1790,6 +1792,11 @@
  1407.      - smbtar fixes from Martin.Kraemer@mch.sni.de
  1408.      - Linux quota patch from xeno@mix.hsv.no
  1409.      - try to work around NT passlen2 problem in session setup
  1410. +    - released alpha1
  1411. +
  1412. +NOTE: From now on the cvs.log file will be used to give a complete log of
  1413. +changes to samba. This change-log is now obsolete.
  1414. +    
  1415.      
  1416.  ==========
  1417.  todo:
  1418. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/charset.h samba-1.9.16alpha2/source/charset.h
  1419. --- samba-1.9.16alpha1/source/charset.h    Thu Jun 29 18:17:22 1995
  1420. +++ samba-1.9.16alpha2/source/charset.h    Sun May  5 17:18:38 1996
  1421. @@ -57,5 +57,9 @@
  1422.  #define islower(c) (((char)(c)) != toupper(c))
  1423.  #define isdoschar(c) (dos_char_map[(char)(c)] != 0)
  1424.  #define isspace(c) ((c)==' ' || (c) == '\t')
  1425. +
  1426. +/* this is used to determine if a character is safe to use in
  1427. +   something that may be put on a command line */
  1428. +#define issafe(c) (isalnum(c) || strchr("-._",c))
  1429.  #endif
  1430.  
  1431. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/client.c samba-1.9.16alpha2/source/client.c
  1432. --- samba-1.9.16alpha1/source/client.c    Thu Feb 29 00:11:48 1996
  1433. +++ samba-1.9.16alpha2/source/client.c    Mon May  6 10:35:45 1996
  1434. @@ -2131,13 +2131,12 @@
  1435.            
  1436.            strcpy(rname,cur_dir);
  1437.            strcat(rname,lname);
  1438. -          if (!do_mkdir(rname))
  1439. -        {
  1440. -          strcat(lname,"/");
  1441. -          if (!seek_list(f,lname))
  1442. -            break;
  1443. -          goto again1;                      
  1444. -        }
  1445. +          if (!chkpath(rname,False) && !do_mkdir(rname)) {
  1446. +        strcat(lname,"/");
  1447. +        if (!seek_list(f,lname))
  1448. +          break;
  1449. +        goto again1;                      
  1450. +          }
  1451.  
  1452.            continue;
  1453.          }
  1454. @@ -3182,19 +3181,36 @@
  1455.        strcpy(pword, ""); passlen=1; 
  1456.      }
  1457.  
  1458. -    set_message(outbuf,4,2 + strlen(service) + passlen + strlen(dev),True);
  1459. -    CVAL(outbuf,smb_com) = SMBtconX;
  1460. -    setup_pkt(outbuf);
  1461. -
  1462. -    SSVAL(outbuf,smb_vwv0,0xFF);
  1463. -    SSVAL(outbuf,smb_vwv3,passlen);
  1464. +    if (Protocol <= PROTOCOL_CORE) {
  1465. +      set_message(outbuf,0,6 + strlen(service) + passlen + strlen(dev),True);
  1466. +      CVAL(outbuf,smb_com) = SMBtcon;
  1467. +      setup_pkt(outbuf);
  1468.  
  1469. -    p = smb_buf(outbuf);
  1470. -    memcpy(p,pword,passlen);
  1471. -    p += passlen;
  1472. -    strcpy(p,service);
  1473. -    p = skip_string(p,1);
  1474. -    strcpy(p,dev);
  1475. +      p = smb_buf(outbuf);
  1476. +      *p++ = 0x04;
  1477. +      strcpy(p, service);
  1478. +      p = skip_string(p,1);
  1479. +      *p++ = 0x04;
  1480. +      memcpy(p,pword,passlen);
  1481. +      p += passlen;
  1482. +      *p++ = 0x04;
  1483. +      strcpy(p, dev);
  1484. +    }
  1485. +    else {
  1486. +      set_message(outbuf,4,2 + strlen(service) + passlen + strlen(dev),True);
  1487. +      CVAL(outbuf,smb_com) = SMBtconX;
  1488. +      setup_pkt(outbuf);
  1489. +  
  1490. +      SSVAL(outbuf,smb_vwv0,0xFF);
  1491. +      SSVAL(outbuf,smb_vwv3,passlen);
  1492. +  
  1493. +      p = smb_buf(outbuf);
  1494. +      memcpy(p,pword,passlen);
  1495. +      p += passlen;
  1496. +      strcpy(p,service);
  1497. +      p = skip_string(p,1);
  1498. +      strcpy(p,dev);
  1499. +    }
  1500.    }
  1501.  
  1502.    send_smb(Client,outbuf);
  1503. @@ -3225,11 +3241,18 @@
  1504.      }
  1505.    
  1506.  
  1507. -  max_xmit = MIN(max_xmit,BUFFER_SIZE-4);
  1508. -  if (max_xmit <= 0)
  1509. -    max_xmit = BUFFER_SIZE - 4;
  1510. +  if (Protocol <= PROTOCOL_CORE) {
  1511. +    max_xmit = SVAL(inbuf,smb_vwv0);
  1512.  
  1513. -  cnum = SVAL(inbuf,smb_tid);
  1514. +    cnum = SVAL(inbuf,smb_vwv1);
  1515. +  }
  1516. +  else {
  1517. +    max_xmit = MIN(max_xmit,BUFFER_SIZE-4);
  1518. +    if (max_xmit <= 0)
  1519. +      max_xmit = BUFFER_SIZE - 4;
  1520. +
  1521. +    cnum = SVAL(inbuf,smb_tid);
  1522. +  }
  1523.  
  1524.    DEBUG(3,("Connected with cnum=%d max_xmit=%d\n",cnum,max_xmit));
  1525.  
  1526. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/cvs.log samba-1.9.16alpha2/source/cvs.log
  1527. --- samba-1.9.16alpha1/source/cvs.log    Thu Jan  1 10:00:00 1970
  1528. +++ samba-1.9.16alpha2/source/cvs.log    Wed May 29 14:35:23 1996
  1529. @@ -0,0 +1,678 @@
  1530. +
  1531. +****************************************
  1532. +Date:    Saturday May 4, 1996 @ 20:32
  1533. +Author:    samba-bugs
  1534. +
  1535. +Update of /data/cvs/samba/source
  1536. +In directory arvidsjaur:/var/tmp/cvs-serv8106
  1537. +
  1538. +Modified Files:
  1539. +    includes.h 
  1540. +Log Message:
  1541. +added sequent fixes
  1542. +
  1543. +
  1544. +
  1545. +
  1546. +
  1547. +
  1548. +****************************************
  1549. +Date:    Saturday May 4, 1996 @ 20:43
  1550. +Author:    tridge
  1551. +
  1552. +Update of /data/cvs/samba/source
  1553. +In directory arvidsjaur:/var/tmp/cvs-serv8316
  1554. +
  1555. +Modified Files:
  1556. +    ipc.c 
  1557. +Log Message:
  1558. +use the new issafe() macro instead of isalnum() and strchr()
  1559. +
  1560. +
  1561. +
  1562. +****************************************
  1563. +Date:    Saturday May 4, 1996 @ 20:44
  1564. +Author:    tridge
  1565. +
  1566. +Update of /data/cvs/samba/source
  1567. +In directory arvidsjaur:/var/tmp/cvs-serv8360
  1568. +
  1569. +Modified Files:
  1570. +    mangle.c 
  1571. +Log Message:
  1572. +move the dot_pos calculation down a bit 
  1573. +
  1574. +
  1575. +
  1576. +
  1577. +****************************************
  1578. +Date:    Saturday May 4, 1996 @ 20:45
  1579. +Author:    tridge
  1580. +
  1581. +Update of /data/cvs/samba/source
  1582. +In directory arvidsjaur:/var/tmp/cvs-serv8389
  1583. +
  1584. +Modified Files:
  1585. +    password.c 
  1586. +Log Message:
  1587. +fix a netgroup bug (innetgr() was being called with the args in the
  1588. +wrong order!)
  1589. +
  1590. +
  1591. +
  1592. +
  1593. +
  1594. +****************************************
  1595. +Date:    Saturday May 4, 1996 @ 20:48
  1596. +Author:    tridge
  1597. +
  1598. +Update of /data/cvs/samba/source
  1599. +In directory arvidsjaur:/var/tmp/cvs-serv8426
  1600. +
  1601. +Modified Files:
  1602. +    server.c 
  1603. +Log Message:
  1604. +- use issafe()
  1605. +
  1606. +- map the archive bit in a more robust manner. We now set it when we
  1607. +first write to the file after opening it.
  1608. +
  1609. +
  1610. +
  1611. +
  1612. +
  1613. +
  1614. +****************************************
  1615. +Date:    Saturday May 4, 1996 @ 20:49
  1616. +Author:    tridge
  1617. +
  1618. +Update of /data/cvs/samba/source
  1619. +In directory arvidsjaur:/var/tmp/cvs-serv8458
  1620. +
  1621. +Modified Files:
  1622. +    util.c 
  1623. +Log Message:
  1624. +fix a dst bug, we had a sign wrong in the calculation :-(
  1625. +
  1626. +
  1627. +
  1628. +
  1629. +****************************************
  1630. +Date:    Saturday May 4, 1996 @ 20:51
  1631. +Author:    tridge
  1632. +
  1633. +Update of /data/cvs/samba/examples/misc
  1634. +In directory arvidsjaur:/var/tmp/cvs-serv8546
  1635. +
  1636. +Modified Files:
  1637. +    wall.perl 
  1638. +Log Message:
  1639. +updates to wall.perl from michal@ellpspace.math.ualberta.ca
  1640. +
  1641. +
  1642. +
  1643. +****************************************
  1644. +Date:    Saturday May 4, 1996 @ 23:13
  1645. +Author:    samba-bugs
  1646. +
  1647. +Update of /data/cvs/samba
  1648. +In directory arvidsjaur:/var/tmp/cvs-serv13363/samba
  1649. +
  1650. +Modified Files:
  1651. +    README 
  1652. +Log Message:
  1653. +Changed to reflect new ownership by Microsoft
  1654. +
  1655. +
  1656. +
  1657. +****************************************
  1658. +Date:    Saturday May 4, 1996 @ 23:16
  1659. +Author:    tridge
  1660. +
  1661. +Update of /data/cvs/samba
  1662. +In directory arvidsjaur:/var/tmp/cvs-serv13433
  1663. +
  1664. +Modified Files:
  1665. +    README 
  1666. +Log Message:
  1667. +removed obscene comment added by Dan
  1668. +
  1669. +
  1670. +
  1671. +****************************************
  1672. +Date:    Sunday May 5, 1996 @ 13:04
  1673. +Author:    tridge
  1674. +
  1675. +Update of /data/cvs/samba/source
  1676. +In directory arvidsjaur:/var/tmp/cvs-serv587
  1677. +
  1678. +Modified Files:
  1679. +    server.c 
  1680. +Log Message:
  1681. +- close the listening socket in the child process when running as a daemon
  1682. +- exit with a non-zero exit code if open_sockets() fails
  1683. +
  1684. +
  1685. +
  1686. +****************************************
  1687. +Date:    Sunday May 5, 1996 @ 13:04
  1688. +Author:    tridge
  1689. +
  1690. +Update of /data/cvs/samba/source
  1691. +In directory arvidsjaur:/var/tmp/cvs-serv615
  1692. +
  1693. +Modified Files:
  1694. +    version.h 
  1695. +Log Message:
  1696. +change version number to 1.9.16p2
  1697. +
  1698. +
  1699. +
  1700. +
  1701. +****************************************
  1702. +Date:    Sunday May 5, 1996 @ 17:19
  1703. +Author:    samba-bugs
  1704. +
  1705. +Update of /data/cvs/samba/docs
  1706. +In directory arvidsjaur:/samba/samba-bugs/samba/docs
  1707. +
  1708. +Modified Files:
  1709. +    Support.txt 
  1710. +Log Message:
  1711. +added some more support entries from samba-bugs mail
  1712. +
  1713. +
  1714. +
  1715. +****************************************
  1716. +Date:    Sunday May 5, 1996 @ 18:02
  1717. +Author:    tridge
  1718. +
  1719. +Update of /data/cvs/samba/docs
  1720. +In directory arvidsjaur:/var/tmp/cvs-serv6791
  1721. +
  1722. +Modified Files:
  1723. +    nmbd.8 
  1724. +Log Message:
  1725. +removed old -S option from nmbd manpage
  1726. +
  1727. +
  1728. +
  1729. +
  1730. +
  1731. +****************************************
  1732. +Date:    Sunday May 5, 1996 @ 18:03
  1733. +Author:    tridge
  1734. +
  1735. +Update of /data/cvs/samba/docs
  1736. +In directory arvidsjaur:/var/tmp/cvs-serv6832
  1737. +
  1738. +Modified Files:
  1739. +    smbclient.1 
  1740. +Log Message:
  1741. +documented -W option
  1742. +
  1743. +
  1744. +
  1745. +
  1746. +
  1747. +
  1748. +****************************************
  1749. +Date:    Sunday May 5, 1996 @ 21:08
  1750. +Author:    tridge
  1751. +
  1752. +Update of /data/cvs/samba/source
  1753. +In directory arvidsjaur:/var/tmp/cvs-serv10254
  1754. +
  1755. +Added Files:
  1756. +    .cvsignore 
  1757. +Log Message:
  1758. +ignore some files
  1759. +
  1760. +
  1761. +
  1762. +
  1763. +
  1764. +
  1765. +
  1766. +****************************************
  1767. +Date:    Sunday May 5, 1996 @ 21:10
  1768. +Author:    tridge
  1769. +
  1770. +Update of /data/cvs/samba/source
  1771. +In directory arvidsjaur:/var/tmp/cvs-serv10352
  1772. +
  1773. +Modified Files:
  1774. +    Makefile 
  1775. +Log Message:
  1776. +- added NEWOS 6 support
  1777. +
  1778. +- added quotas.o
  1779. +
  1780. +
  1781. +
  1782. +
  1783. +
  1784. +
  1785. +
  1786. +
  1787. +****************************************
  1788. +Date:    Sunday May 5, 1996 @ 21:12
  1789. +Author:    tridge
  1790. +
  1791. +Update of /data/cvs/samba/source
  1792. +In directory arvidsjaur:/var/tmp/cvs-serv10423
  1793. +
  1794. +Modified Files:
  1795. +    client.c 
  1796. +Log Message:
  1797. +- handle CORE protocol better
  1798. +- handle case where director exists when untarring
  1799. +
  1800. +
  1801. +
  1802. +
  1803. +
  1804. +
  1805. +
  1806. +
  1807. +
  1808. +****************************************
  1809. +Date:    Sunday May 5, 1996 @ 21:23
  1810. +Author:    tridge
  1811. +
  1812. +Update of /data/cvs/samba/source
  1813. +In directory arvidsjaur:/var/tmp/cvs-serv10576
  1814. +
  1815. +Modified Files:
  1816. +    dir.c 
  1817. +Log Message:
  1818. +handle being passed a dptr of -1 to mean "close all open dir handles".
  1819. +Looks like OS/2 does this. It caused a core dump.
  1820. +
  1821. +
  1822. +
  1823. +
  1824. +
  1825. +
  1826. +
  1827. +
  1828. +****************************************
  1829. +Date:    Sunday May 5, 1996 @ 21:24
  1830. +Author:    tridge
  1831. +
  1832. +Update of /data/cvs/samba/source
  1833. +In directory arvidsjaur:/var/tmp/cvs-serv10602
  1834. +
  1835. +Modified Files:
  1836. +    local.h 
  1837. +Log Message:
  1838. +turn on KEEP_PASSWORD_SERVER_OPEN by default
  1839. +
  1840. +
  1841. +
  1842. +
  1843. +
  1844. +
  1845. +
  1846. +
  1847. +
  1848. +****************************************
  1849. +Date:    Sunday May 5, 1996 @ 21:24
  1850. +Author:    tridge
  1851. +
  1852. +Update of /data/cvs/samba/source
  1853. +In directory arvidsjaur:/var/tmp/cvs-serv10629
  1854. +
  1855. +Modified Files:
  1856. +    password.c 
  1857. +Log Message:
  1858. +turn on KEEP_PASSWORD_SERVER_OPEN by default
  1859. +
  1860. +
  1861. +
  1862. +
  1863. +
  1864. +
  1865. +
  1866. +
  1867. +
  1868. +****************************************
  1869. +Date:    Sunday May 5, 1996 @ 21:25
  1870. +Author:    tridge
  1871. +
  1872. +Update of /data/cvs/samba/source
  1873. +In directory arvidsjaur:/var/tmp/cvs-serv10657
  1874. +
  1875. +Added Files:
  1876. +    quotas.c 
  1877. +Log Message:
  1878. +move quotas support out of server.c
  1879. +
  1880. +
  1881. +
  1882. +
  1883. +
  1884. +
  1885. +
  1886. +
  1887. +****************************************
  1888. +Date:    Sunday May 5, 1996 @ 21:26
  1889. +Author:    tridge
  1890. +
  1891. +Update of /data/cvs/samba/source
  1892. +In directory arvidsjaur:/var/tmp/cvs-serv10682
  1893. +
  1894. +Modified Files:
  1895. +    server.c 
  1896. +Log Message:
  1897. +- fix a bug hanlding very log filenames
  1898. +- move quotas support to separate file
  1899. +- send keepalives to password server
  1900. +
  1901. +
  1902. +
  1903. +
  1904. +
  1905. +
  1906. +
  1907. +
  1908. +
  1909. +****************************************
  1910. +Date:    Sunday May 5, 1996 @ 21:33
  1911. +Author:    tridge
  1912. +
  1913. +Update of /data/cvs/samba/source
  1914. +In directory arvidsjaur:/var/tmp/cvs-serv10862
  1915. +
  1916. +Modified Files:
  1917. +    status.c 
  1918. +Log Message:
  1919. +- added hostname support to smbstatus
  1920. +- fix a bug where -s would not be recognised
  1921. +
  1922. +
  1923. +
  1924. +
  1925. +
  1926. +
  1927. +
  1928. +****************************************
  1929. +Date:    Sunday May 5, 1996 @ 21:34
  1930. +Author:    tridge
  1931. +
  1932. +Update of /data/cvs/samba/source
  1933. +In directory arvidsjaur:/var/tmp/cvs-serv10889
  1934. +
  1935. +Modified Files:
  1936. +    trans2.c 
  1937. +Log Message:
  1938. +made dptr_num signed to handle -1 from OS/2
  1939. +
  1940. +
  1941. +
  1942. +
  1943. +
  1944. +
  1945. +
  1946. +
  1947. +****************************************
  1948. +Date:    Sunday May 5, 1996 @ 21:35
  1949. +Author:    tridge
  1950. +
  1951. +Update of /data/cvs/samba/source
  1952. +In directory arvidsjaur:/var/tmp/cvs-serv10930
  1953. +
  1954. +Modified Files:
  1955. +    version.h 
  1956. +Log Message:
  1957. +fixed version number (again!)
  1958. +
  1959. +
  1960. +
  1961. +
  1962. +
  1963. +
  1964. +
  1965. +
  1966. +
  1967. +****************************************
  1968. +Date:    Monday May 6, 1996 @ 10:36
  1969. +Author:    samba-bugs
  1970. +
  1971. +Update of /data/cvs/samba/docs
  1972. +In directory arvidsjaur:/samba/samba-bugs/samba/docs
  1973. +
  1974. +Modified Files:
  1975. +    MIRRORS 
  1976. +Log Message:
  1977. +added QNX entry to MIRRORS
  1978. +
  1979. +
  1980. +
  1981. +****************************************
  1982. +Date:    Monday May 6, 1996 @ 16:46
  1983. +Author:    samba-bugs
  1984. +
  1985. +Update of /data/cvs/samba/examples/misc
  1986. +In directory arvidsjaur:/var/tmp/cvs-serv5225
  1987. +
  1988. +Modified Files:
  1989. +    extra_smbstatus 
  1990. +Log Message:
  1991. +Updated smbstat script with a better one, Paul.
  1992. +
  1993. +
  1994. +
  1995. +****************************************
  1996. +Date:    Monday May 6, 1996 @ 18:55
  1997. +Author:    samba-bugs
  1998. +
  1999. +Update of /data/cvs/samba/docs
  2000. +In directory arvidsjaur:/var/tmp/cvs-serv8483
  2001. +
  2002. +Modified Files:
  2003. +    BUGS.txt MIRRORS README.OS2 announce samba.7 
  2004. +Log Message:
  2005. +Updated references in doco to 'http://lake.can.....'
  2006. +with 'http://samba.can.....' and added a mirror site to MIRROR
  2007. +
  2008. +
  2009. +
  2010. +****************************************
  2011. +Date:    Monday May 6, 1996 @ 19:16
  2012. +Author:    samba-bugs
  2013. +
  2014. +Update of /data/cvs/samba/docs
  2015. +In directory arvidsjaur:/var/tmp/cvs-serv8786
  2016. +
  2017. +Modified Files:
  2018. +    samba.faq 
  2019. +Log Message:
  2020. +Update the samba.faq file with what was current on the web site, there
  2021. +were a number of additions.
  2022. +Changed the faq version number to 1.9.15 to match current samba version.
  2023. +
  2024. +
  2025. +
  2026. +****************************************
  2027. +Date:    Friday May 17, 1996 @ 10:43
  2028. +Author:    samba-bugs
  2029. +
  2030. +Update of /data/cvs/samba
  2031. +In directory arvidsjaur:/var/tmp/cvs-serv32671
  2032. +
  2033. +Modified Files:
  2034. +    README 
  2035. +Log Message:
  2036. +
  2037. +Made   chang
  2038. +blody comso: can't see what i'm writing...
  2039. +Made changes to reflect nimbus.anu.edu.au -> samba.anu.edu.au chage.
  2040. +changed reference to /ub/samba/change-log o /ub/samba/alpha/change-log
  2041. +Also added samba.faq.html to docs directory
  2042. +Paul...
  2043. +
  2044. +
  2045. +
  2046. +
  2047. +****************************************
  2048. +Date:    Friday May 17, 1996 @ 10:43
  2049. +Author:    samba-bugs
  2050. +
  2051. +Update of /data/cvs/samba/docs
  2052. +In directory arvidsjaur:/var/tmp/cvs-serv32671/docs
  2053. +
  2054. +Modified Files:
  2055. +    samba.faq 
  2056. +Log Message:
  2057. +
  2058. +Made   chang
  2059. +blody comso: can't see what i'm writing...
  2060. +Made changes to reflect nimbus.anu.edu.au -> samba.anu.edu.au chage.
  2061. +changed reference to /ub/samba/change-log o /ub/samba/alpha/change-log
  2062. +Also added samba.faq.html to docs directory
  2063. +Paul...
  2064. +
  2065. +
  2066. +
  2067. +
  2068. +****************************************
  2069. +Date:    Monday May 20, 1996 @ 18:11
  2070. +Author:    samba-bugs
  2071. +
  2072. +Update of /data/cvs/samba
  2073. +In directory arvidsjaur:/var/tmp/cvs-serv27227
  2074. +
  2075. +Modified Files:
  2076. +    README 
  2077. +Log Message:
  2078. +Changed more references of 'nimbus.anu.edu.au/pub/tridge/samba' to
  2079. +'samba.anu.edu.au/pub/samba'
  2080. +The only reference I see now to 'nimbus' is in ENCRYPTION.txt regarding
  2081. +libdes stuff.
  2082. +Paul...
  2083. +
  2084. +
  2085. +
  2086. +****************************************
  2087. +Date:    Monday May 20, 1996 @ 18:11
  2088. +Author:    samba-bugs
  2089. +
  2090. +Update of /data/cvs/samba/docs
  2091. +In directory arvidsjaur:/var/tmp/cvs-serv27227/docs
  2092. +
  2093. +Modified Files:
  2094. +    HINTS.txt MIRRORS announce samba.7 samba.lsm 
  2095. +Log Message:
  2096. +Changed more references of 'nimbus.anu.edu.au/pub/tridge/samba' to
  2097. +'samba.anu.edu.au/pub/samba'
  2098. +The only reference I see now to 'nimbus' is in ENCRYPTION.txt regarding
  2099. +libdes stuff.
  2100. +Paul...
  2101. +
  2102. +
  2103. +
  2104. +****************************************
  2105. +Date:    Friday May 24, 1996 @ 9:23
  2106. +Author:    samba-bugs
  2107. +
  2108. +Update of /data/cvs/samba/docs
  2109. +In directory arvidsjaur:/var/tmp/cvs-serv2665/samba/docs
  2110. +
  2111. +Modified Files:
  2112. +    DIAGNOSIS.txt 
  2113. +Log Message:
  2114. +Added check for something already binding to port 139 to TEST 3
  2115. +   Dan
  2116. +
  2117. +
  2118. +
  2119. +****************************************
  2120. +Date:    Friday May 24, 1996 @ 9:45
  2121. +Author:    samba-bugs
  2122. +
  2123. +Update of /data/cvs/samba/docs
  2124. +In directory arvidsjaur:/var/tmp/cvs-serv2938/samba/docs
  2125. +
  2126. +Modified Files:
  2127. +    samba.faq 
  2128. +Log Message:
  2129. +Updated general section to include more about current capabilities. Added
  2130. +references to samba-bugs, DIAGNOSIS.txt and the hypermail archives. Various
  2131. +other small changes.
  2132. +   Dan
  2133. +
  2134. +
  2135. +
  2136. +****************************************
  2137. +Date:    Friday May 24, 1996 @ 9:50
  2138. +Author:    samba-bugs
  2139. +
  2140. +Update of /data/cvs/samba/docs
  2141. +In directory arvidsjaur:/var/tmp/cvs-serv3028/samba/docs
  2142. +
  2143. +Modified Files:
  2144. +    BUGS.txt 
  2145. +Log Message:
  2146. +Added reference to DIAGNOSIS.txt. Deleted the claim that tridge reads all
  2147. +postings to mailing list. Removed arvidsjaur, other small stuff.
  2148. +   Dan
  2149. +
  2150. +
  2151. +
  2152. +****************************************
  2153. +Date:    Friday May 24, 1996 @ 9:54
  2154. +Author:    samba-bugs
  2155. +
  2156. +Update of /data/cvs/samba
  2157. +In directory arvidsjaur:/var/tmp/cvs-serv3126/samba
  2158. +
  2159. +Modified Files:
  2160. +    README 
  2161. +Log Message:
  2162. +General updating.
  2163. +   Dan
  2164. +
  2165. +
  2166. +
  2167. +****************************************
  2168. +Date:    Tuesday May 28, 1996 @ 23:39
  2169. +Author:    samba-bugs
  2170. +
  2171. +Update of /data/cvs/samba/docs
  2172. +In directory arvidsjaur:/samba/samba-bugs/samba/docs
  2173. +
  2174. +Modified Files:
  2175. +    MIRRORS 
  2176. +Log Message:
  2177. +added nimbus to list of mirrors
  2178. +
  2179. +
  2180. +
  2181. +****************************************
  2182. +Date:    Wednesday May 29, 1996 @ 13:11
  2183. +Author:    tridge
  2184. +
  2185. +Update of /data/cvs/samba/source
  2186. +In directory arvidsjaur:/var/tmp/cvs-serv13319
  2187. +
  2188. +Modified Files:
  2189. +    util.c 
  2190. +Log Message:
  2191. +cleaned up the way the max log size stuff works and fixed a potential
  2192. +problem with varargs usage in Debug()
  2193. +
  2194. +
  2195. +
  2196. +****************************************
  2197. +Date:    Wednesday May 29, 1996 @ 14:34
  2198. +Author:    samba-bu
  2199. +
  2200. +Update of /data/cvs/samba/source
  2201. +In directory arvidsjaur:/samba/samba-bugs/samba/source
  2202. +
  2203. +Modified Files:
  2204. +    change-log 
  2205. +Log Message:
  2206. +preparing for release of 1.9.16alpha2
  2207. +
  2208. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/dir.c samba-1.9.16alpha2/source/dir.c
  2209. --- samba-1.9.16alpha1/source/dir.c    Sun Dec  3 19:26:31 1995
  2210. +++ samba-1.9.16alpha2/source/dir.c    Mon May  6 10:35:45 1996
  2211. @@ -186,6 +186,19 @@
  2212.  ****************************************************************************/
  2213.  void dptr_close(int key)
  2214.  {
  2215. +  /* OS/2 seems to use -1 to indicate "close all directories" */
  2216. +  if (key == -1) {
  2217. +    int i;
  2218. +    for (i=0;i<NUMDIRPTRS;i++) 
  2219. +      dptr_close(i);
  2220. +    return;
  2221. +  }
  2222. +
  2223. +  if (key < 0 || key >= NUMDIRPTRS) {
  2224. +    DEBUG(3,("Invalid key %d given to dptr_close\n",key));
  2225. +    return;
  2226. +  }
  2227. +
  2228.    if (dirptrs[key].valid) {
  2229.      DEBUG(4,("closing dptr key %d\n",key));
  2230.      if (dirptrs[key].ptr) {
  2231. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/includes.h samba-1.9.16alpha2/source/includes.h
  2232. --- samba-1.9.16alpha1/source/includes.h    Thu Feb 29 00:11:48 1996
  2233. +++ samba-1.9.16alpha2/source/includes.h    Sun May  5 17:18:39 1996
  2234. @@ -481,7 +481,6 @@
  2235.  #include <netinet/ip.h>
  2236.  #define SIGNAL_CAST (void (*)())
  2237.  #define USE_DIRECT
  2238. -#define REPLACE_INNETGR
  2239.  #endif 
  2240.  
  2241.  
  2242. @@ -548,6 +547,32 @@
  2243.  #define USE_DIRECT
  2244.  #endif
  2245.  
  2246. +#ifdef SEQUENT_PTX4
  2247. +#include <string.h>
  2248. +#include <sys/dir.h>
  2249. +#include <dirent.h>
  2250. +#include <sys/statfs.h>
  2251. +#include <sys/statvfs.h>
  2252. +#include <sys/vfs.h>
  2253. +#include <fcntl.h>
  2254. +#include <sys/sockio.h>
  2255. +#include <netinet/tcp.h>
  2256. +#include <stropts.h>
  2257. +#include <termios.h>
  2258. +#define SYSV
  2259. +#define USE_WAITPID
  2260. +#define SIGNAL_CAST (void (*)(int))
  2261. +#define USE_STATVFS
  2262. +#define USE_GETCWD
  2263. +#ifndef seteuid
  2264. +#define seteuid(uid) setreuid(-1,uid)
  2265. +#endif
  2266. +#ifndef setegid
  2267. +#define setegid(gid) setregid(-1,gid)
  2268. +#endif
  2269. +#endif
  2270. +
  2271. +
  2272.  #ifdef NEXT2
  2273.  #include <sys/types.h>
  2274.  #include <strings.h>
  2275. @@ -734,7 +759,6 @@
  2276.  #endif /* DNIX */
  2277.  
  2278.  #ifdef CONVEX
  2279. -#define SIGNAL_CAST (void (*)(int))
  2280.  #include <netinet/tcp.h>
  2281.  #include <arpa/inet.h>
  2282.  #include <dirent.h>
  2283. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/ipc.c samba-1.9.16alpha2/source/ipc.c
  2284. --- samba-1.9.16alpha1/source/ipc.c    Sun Feb 25 13:10:05 1996
  2285. +++ samba-1.9.16alpha2/source/ipc.c    Sun May  5 17:18:39 1996
  2286. @@ -1551,8 +1551,7 @@
  2287.      int l = 0;
  2288.      while (l<64 && *s)
  2289.        {
  2290. -        if (isalnum(*s) || strchr("-._",*s))
  2291. -          name[l++] = *s;
  2292. +        if (issafe(*s)) name[l++] = *s;
  2293.          s++;
  2294.        }      
  2295.      name[l] = 0;
  2296. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/local.h samba-1.9.16alpha2/source/local.h
  2297. --- samba-1.9.16alpha1/source/local.h    Fri Jan 19 20:00:57 1996
  2298. +++ samba-1.9.16alpha2/source/local.h    Mon May  6 10:35:45 1996
  2299. @@ -163,5 +163,8 @@
  2300.  /* shall we support browse requests via a FIFO to nmbd? */
  2301.  #define ENABLE_FIFO 1
  2302.  
  2303. +/* keep the password server open, this uses up a aocket, but is needed
  2304. +   by many apps */
  2305. +#define KEEP_PASSWORD_SERVER_OPEN 1
  2306.  
  2307.  #endif
  2308. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/mangle.c samba-1.9.16alpha2/source/mangle.c
  2309. --- samba-1.9.16alpha1/source/mangle.c    Thu Dec  7 10:23:34 1995
  2310. +++ samba-1.9.16alpha2/source/mangle.c    Sun May  5 17:18:39 1996
  2311. @@ -90,8 +90,6 @@
  2312.    if (slash_pos) fname = slash_pos+1;
  2313.    len = strlen(fname);
  2314.  
  2315. -  dot_pos = strchr(fname,'.');
  2316. -
  2317.    DEBUG(5,("checking %s for 8.3\n",fname));
  2318.  
  2319.    if (case_mangle)
  2320. @@ -121,6 +119,8 @@
  2321.  
  2322.    /* %%% A nice improvment to name mangling would be to translate
  2323.       filename to ANSI charset on the smb server host */
  2324. +
  2325. +  dot_pos = strchr(fname,'.');
  2326.  
  2327.    {
  2328.      char *p = fname;
  2329. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/password.c samba-1.9.16alpha2/source/password.c
  2330. --- samba-1.9.16alpha1/source/password.c    Tue Jan 30 17:25:45 1996
  2331. +++ samba-1.9.16alpha2/source/password.c    Mon May  6 10:35:45 1996
  2332. @@ -1153,13 +1153,12 @@
  2333.        BOOL host_ok = False;
  2334.  
  2335.  #ifdef NETGROUP      
  2336. -      /* THIS IS UNTESTED!! */
  2337.        if (is_group)
  2338.          {
  2339.            static char *mydomain = NULL;
  2340.            if (!mydomain)
  2341.          yp_get_default_domain(&mydomain);
  2342. -          if (mydomain && innetgr(remote,file_host,user,mydomain))
  2343. +          if (mydomain && innetgr(file_host,remote,user,mydomain))
  2344.          host_ok = True;
  2345.          }
  2346.  #else
  2347. @@ -1242,7 +1241,7 @@
  2348.  }
  2349.  
  2350.  
  2351. -static int password_client = -1;
  2352. +int password_client = -1;
  2353.  static fstring pserver;
  2354.  
  2355.  /****************************************************************************
  2356. @@ -1406,7 +1405,7 @@
  2357.  
  2358.    DEBUG(3,("password server %s accepted the password\n",pserver));
  2359.  
  2360. -#ifndef KEEP_PASSWORD_SERVER_OPEN
  2361. +#if !KEEP_PASSWORD_SERVER_OPEN
  2362.    close(password_client); password_client= -1;
  2363.  #endif
  2364.  
  2365. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/quotas.c samba-1.9.16alpha2/source/quotas.c
  2366. --- samba-1.9.16alpha1/source/quotas.c    Thu Jan  1 10:00:00 1970
  2367. +++ samba-1.9.16alpha2/source/quotas.c    Sun May  5 21:25:13 1996
  2368. @@ -0,0 +1,330 @@
  2369. +/* 
  2370. +   Unix SMB/Netbios implementation.
  2371. +   Version 1.9.
  2372. +   support for quotas
  2373. +   Copyright (C) Andrew Tridgell 1992-1995
  2374. +   
  2375. +   This program is free software; you can redistribute it and/or modify
  2376. +   it under the terms of the GNU General Public License as published by
  2377. +   the Free Software Foundation; either version 2 of the License, or
  2378. +   (at your option) any later version.
  2379. +   
  2380. +   This program is distributed in the hope that it will be useful,
  2381. +   but WITHOUT ANY WARRANTY; without even the implied warranty of
  2382. +   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  2383. +   GNU General Public License for more details.
  2384. +   
  2385. +   You should have received a copy of the GNU General Public License
  2386. +   along with this program; if not, write to the Free Software
  2387. +   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  2388. +*/
  2389. +
  2390. +#include "includes.h"
  2391. +
  2392. +
  2393. +#ifdef QUOTAS
  2394. +
  2395. +#ifdef LINUX
  2396. +/****************************************************************************
  2397. +try to get the disk space from disk quotas (LINUX version)
  2398. +****************************************************************************/
  2399. +/*
  2400. +If you didn't make the symlink to the quota package, too bad :(
  2401. +*/
  2402. +#include "quota/quotactl.c"
  2403. +#include "quota/hasquota.c"
  2404. +static BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
  2405. +{
  2406. +  uid_t euser_id;
  2407. +  struct dqblk D;
  2408. +  struct stat S;
  2409. +  dev_t devno ;
  2410. +  struct mntent *mnt;
  2411. +  FILE *fp;
  2412. +  int found ;
  2413. +  int qcmd, fd ;
  2414. +  char *qfpathname;
  2415. +  
  2416. +  /* find the block device file */
  2417. +  
  2418. +  if ( stat(path, &S) == -1 )
  2419. +    return(False) ;
  2420. +
  2421. +  devno = S.st_dev ;
  2422. +  
  2423. +  fp = setmntent(MOUNTED,"r");
  2424. +  found = False ;
  2425. +  
  2426. +  while ((mnt = getmntent(fp)) != (struct mntent *) 0) {
  2427. +    if ( stat(mnt->mnt_dir,&S) == -1 )
  2428. +      continue ;
  2429. +    if (S.st_dev == devno) {
  2430. +      found = True ;
  2431. +      break ;
  2432. +    }
  2433. +  }
  2434. +  endmntent(fp) ;
  2435. +  
  2436. +  if ( ! found )
  2437. +    return(False) ;
  2438. +  
  2439. +  qcmd = QCMD(Q_GETQUOTA, USRQUOTA);
  2440. +  
  2441. +  if (hasmntopt(mnt, MNTOPT_NOAUTO) || hasmntopt(mnt, MNTOPT_NOQUOTA))
  2442. +    return(False) ;
  2443. +  
  2444. +  if (!hasquota(mnt, USRQUOTA, &qfpathname))
  2445. +    return(False) ;
  2446. +  
  2447. +  euser_id = geteuid();
  2448. +  seteuid(0);
  2449. +  
  2450. +  if (quotactl(qcmd, mnt->mnt_fsname, euser_id, (caddr_t)&D) != 0) {
  2451. +    if ((fd = open(qfpathname, O_RDONLY)) < 0) {
  2452. +      seteuid(euser_id);
  2453. +      return(False);
  2454. +    }
  2455. +    lseek(fd, (long) dqoff(euser_id), L_SET);
  2456. +    switch (read(fd, &D, sizeof(struct dqblk))) {
  2457. +    case 0:/* EOF */
  2458. +      memset((caddr_t)&D, 0, sizeof(struct dqblk));
  2459. +      break;
  2460. +    case sizeof(struct dqblk):   /* OK */
  2461. +      break;
  2462. +    default:   /* ERROR */
  2463. +      close(fd);
  2464. +      seteuid(euser_id);
  2465. +      return(False);
  2466. +    }
  2467. +  }
  2468. +  seteuid(euser_id);
  2469. +  *bsize=1024;
  2470. +
  2471. +  if (D.dqb_bsoftlimit==0)
  2472. +    return(False);
  2473. +  if ((D.dqb_curblocks>D.dqb_bsoftlimit)||(D.dqb_curinodes>D.dqb_isoftlimit))
  2474. +    {
  2475. +      *dfree = 0;
  2476. +      *dsize = D.dqb_curblocks;
  2477. +    }
  2478. +  else {
  2479. +    *dfree = D.dqb_bsoftlimit - D.dqb_curblocks;
  2480. +    *dsize = D.dqb_bsoftlimit;
  2481. +  }
  2482. +  return (True);
  2483. +}
  2484. +
  2485. +#elif defined(CRAY)
  2486. +/****************************************************************************
  2487. +try to get the disk space from disk quotas (CRAY VERSION)
  2488. +****************************************************************************/
  2489. +static BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
  2490. +{
  2491. +  struct mntent *mnt;
  2492. +  FILE *fd;
  2493. +  struct stat sbuf;
  2494. +  dev_t devno ;
  2495. +  static dev_t devno_cached = 0 ;
  2496. +  static char name[MNTMAXSTR] ;
  2497. +  struct q_request request ;
  2498. +  struct qf_header header ;
  2499. +  static int quota_default = 0 ;
  2500. +  int found ;
  2501. +  
  2502. +  if ( stat(path,&sbuf) == -1 )
  2503. +    return(False) ;
  2504. +  
  2505. +  devno = sbuf.st_dev ;
  2506. +  
  2507. +  if ( devno != devno_cached ) {
  2508. +    
  2509. +    devno_cached = devno ;
  2510. +    
  2511. +    if ((fd = setmntent(KMTAB)) == NULL)
  2512. +      return(False) ;
  2513. +    
  2514. +    found = False ;
  2515. +    
  2516. +    while ((mnt = getmntent(fd)) != NULL) {
  2517. +      
  2518. +      if ( stat(mnt->mnt_dir,&sbuf) == -1 )
  2519. +    continue ;
  2520. +      
  2521. +      if (sbuf.st_dev == devno) {
  2522. +    
  2523. +    found = True ;
  2524. +    break ;
  2525. +    
  2526. +      }
  2527. +      
  2528. +    }
  2529. +    
  2530. +    strcpy(name,mnt->mnt_dir) ;
  2531. +    endmntent(fd) ;
  2532. +    
  2533. +    if ( ! found )
  2534. +      return(False) ;
  2535. +  }
  2536. +  
  2537. +  request.qf_magic = QF_MAGIC ;
  2538. +  request.qf_entry.id = geteuid() ;
  2539. +  
  2540. +  if (quotactl(name, Q_GETQUOTA, &request) == -1)
  2541. +    return(False) ;
  2542. +  
  2543. +  if ( ! request.user )
  2544. +    return(False) ;
  2545. +  
  2546. +  if ( request.qf_entry.user_q.f_quota == QFV_DEFAULT ) {
  2547. +    
  2548. +    if ( ! quota_default ) {
  2549. +      
  2550. +      if ( quotactl(name, Q_GETHEADER, &header) == -1 )
  2551. +    return(False) ;
  2552. +      else
  2553. +    quota_default = header.user_h.def_fq ;
  2554. +    }
  2555. +    
  2556. +    *dfree = quota_default ;
  2557. +    
  2558. +  }else if ( request.qf_entry.user_q.f_quota == QFV_PREVENT ) {
  2559. +    
  2560. +    *dfree = 0 ;
  2561. +    
  2562. +  }else{
  2563. +    
  2564. +    *dfree = request.qf_entry.user_q.f_quota ;
  2565. +    
  2566. +  }
  2567. +  
  2568. +  *dsize = request.qf_entry.user_q.f_use ;
  2569. +  
  2570. +  if ( *dfree )
  2571. +    *dfree -= *dsize ;
  2572. +  
  2573. +  if ( *dfree < 0 )
  2574. +    *dfree = 0 ;
  2575. +  
  2576. +  *bsize = 4096 ;  /* Cray blocksize */
  2577. +  
  2578. +  return(True) ;
  2579. +  
  2580. +}
  2581. +
  2582. +
  2583. +#elif defined(SUNOS5)
  2584. +
  2585. +#include <fcntl.h>
  2586. +#include <sys/fs/ufs_quota.h>
  2587. +
  2588. +/****************************************************************************
  2589. +try to get the disk space from disk quotas (solaris 2 version)
  2590. +****************************************************************************/
  2591. +/* Quota code by Peter Urbanec (amiga@cse.unsw.edu.au) */
  2592. +static BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
  2593. +{
  2594. +  uid_t user_id, euser_id;
  2595. +  int r;
  2596. +  struct dqblk D;
  2597. +  struct quotctl command;
  2598. +  int file;
  2599. +  if((file=open(path, O_RDONLY))<0) return(False);
  2600. +
  2601. +  euser_id = geteuid();
  2602. +  user_id = getuid();
  2603. +
  2604. +  setuid(0);  /* Solaris seems to want to give info only to super-user */
  2605. +  seteuid(0);
  2606. +
  2607. +  command.op = Q_GETQUOTA;
  2608. +  command.uid = euser_id;
  2609. +  command.addr = (caddr_t) &D;
  2610. +  if(ioctl(file, Q_QUOTACTL, &command)<0)
  2611. +    {
  2612. +     close(file);
  2613. +     DEBUG(2,("disk_quotas ioctl (Solaris) failed\n"));
  2614. +     return(False);
  2615. +    }
  2616. +  close(file);
  2617. +
  2618. +  setuid(user_id);  /* Restore the original UID status */
  2619. +  seteuid(euser_id);
  2620. +
  2621. +  /* Use softlimit to determine disk space. A user exceeding the quota is told
  2622. +   * that there's no space left. Writes might actually work for a bit if the
  2623. +   * hardlimit is set higher than softlimit. Effectively the disk becomes
  2624. +   * made of rubber latex and begins to expand to accommodate the user :-)
  2625. +   */
  2626. +
  2627. +  *bsize = 512;
  2628. +  *dfree = D.dqb_bsoftlimit - D.dqb_curblocks;
  2629. +  *dsize = D.dqb_bsoftlimit;
  2630. +  if(*dfree < 0)
  2631. +    {
  2632. +     *dfree = 0;
  2633. +     *dsize = D.dqb_curblocks;
  2634. +    }
  2635. +      
  2636. +DEBUG(5,("disk_quotas for path \"%s\" returning  bsize %d, dfree %d, dsize %d\n",
  2637. +         path,*bsize,*dfree,*dsize));
  2638. +
  2639. +      return(True);
  2640. +}
  2641. +
  2642. +#else
  2643. +
  2644. +/****************************************************************************
  2645. +try to get the disk space from disk quotas - default version
  2646. +****************************************************************************/
  2647. +static BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
  2648. +{
  2649. +  uid_t user_id, euser_id;
  2650. +  int r;
  2651. +  char dev_disk[256];
  2652. +  struct dqblk D;
  2653. +  struct stat S;
  2654. +  /* find the block device file */
  2655. +  if ((stat(path, &S)<0) ||
  2656. +      (devnm(S_IFBLK, S.st_dev, dev_disk, 256, 0)<0)) return (False);
  2657. +
  2658. +  euser_id = geteuid();
  2659. +
  2660. +#ifdef USE_SETRES
  2661. +  /* for HPUX, real uid must be same as euid to execute quotactl for euid */
  2662. +  user_id = getuid();
  2663. +  setresuid(euser_id,-1,-1);
  2664. +#endif
  2665. +  r=quotactl(Q_GETQUOTA, dev_disk, euser_id, &D);
  2666. +  #ifdef USE_SETRES
  2667. +  if (setresuid(user_id,-1,-1))
  2668. +    DEBUG(5,("Unable to reset uid to %d\n", user_id));
  2669. +  #endif
  2670. +  /* Use softlimit to determine disk space, except when it has been exceeded */
  2671. +  *bsize = 1024;
  2672. +  if (r)
  2673. +    {
  2674. +      if (errno == EDQUOT) 
  2675. +    {
  2676. +       *dfree =0;
  2677. +       *dsize =D.dqb_curblocks;
  2678. +       return (True);
  2679. +    }
  2680. +      else return(False);
  2681. +    }
  2682. +  /* Use softlimit to determine disk space, except when it has been exceeded */
  2683. +  if ((D.dqb_curblocks>D.dqb_bsoftlimit)||(D.dqb_curfiles>D.dqb_fsoftlimit)) 
  2684. +    {
  2685. +      *dfree = 0;
  2686. +      *dsize = D.dqb_curblocks;
  2687. +    }
  2688. +  else {
  2689. +    *dfree = D.dqb_bsoftlimit - D.dqb_curblocks;
  2690. +    *dsize = D.dqb_bsoftlimit;
  2691. +  }
  2692. +  return (True);
  2693. +}
  2694. +
  2695. +#endif
  2696. +#endif
  2697. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/server.c samba-1.9.16alpha2/source/server.c
  2698. --- samba-1.9.16alpha1/source/server.c    Thu Feb 29 00:11:48 1996
  2699. +++ samba-1.9.16alpha2/source/server.c    Mon May  6 10:35:46 1996
  2700. @@ -257,7 +257,7 @@
  2701.      unixmode &= ~(S_IWUSR|S_IWGRP|S_IWOTH);
  2702.      unixmode |= tmp;
  2703.    }
  2704. -    
  2705. +
  2706.    return(chmod(fname,unixmode));
  2707.  }
  2708.  
  2709. @@ -326,7 +326,7 @@
  2710.    void *cur_dir;
  2711.    char *dname;
  2712.    BOOL mangled;
  2713. -  fstring name2;
  2714. +  pstring name2;
  2715.  
  2716.    mangled = is_mangled(name);
  2717.  
  2718. @@ -410,8 +410,12 @@
  2719.      {
  2720.        if ((! *name) || strchr(name,'/') || !is_8_3(name))
  2721.      {
  2722. +      char *s;
  2723.        fstring name2;
  2724.        sprintf(name2,"%.6s.XXXXXX",remote_machine);
  2725. +      /* sanitise the name */
  2726. +      for (s=name2 ; *s ; s++)
  2727. +        if (!issafe(*s)) *s = '_';
  2728.        strcpy(name,(char *)mktemp(name2));      
  2729.      }      
  2730.        return(True);
  2731. @@ -522,251 +526,6 @@
  2732.  }
  2733.  
  2734.  
  2735. -
  2736. -
  2737. -#ifdef QUOTAS
  2738. -#ifdef LINUX
  2739. -/****************************************************************************
  2740. -try to get the disk space from disk quotas (LINUX version)
  2741. -****************************************************************************/
  2742. -/*
  2743. -If you didn't make the symlink to the quota package, too bad :(
  2744. -*/
  2745. -#include "quota/quotactl.c"
  2746. -#include "quota/hasquota.c"
  2747. -static BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
  2748. -{
  2749. -  uid_t euser_id;
  2750. -  struct dqblk D;
  2751. -  struct stat S;
  2752. -  dev_t devno ;
  2753. -  struct mntent *mnt;
  2754. -  FILE *fp;
  2755. -  int found ;
  2756. -  int qcmd, fd ;
  2757. -  char *qfpathname;
  2758. -  
  2759. -  /* find the block device file */
  2760. -  
  2761. -  if ( stat(path, &S) == -1 )
  2762. -    return(False) ;
  2763. -
  2764. -  devno = S.st_dev ;
  2765. -  
  2766. -  fp = setmntent(MOUNTED,"r");
  2767. -  found = False ;
  2768. -  
  2769. -  while ((mnt = getmntent(fp)) != (struct mntent *) 0) {
  2770. -    if ( stat(mnt->mnt_dir,&S) == -1 )
  2771. -      continue ;
  2772. -    if (S.st_dev == devno) {
  2773. -      found = True ;
  2774. -      break ;
  2775. -    }
  2776. -  }
  2777. -  endmntent(fp) ;
  2778. -  
  2779. -  if ( ! found )
  2780. -    return(False) ;
  2781. -  
  2782. -  qcmd = QCMD(Q_GETQUOTA, USRQUOTA);
  2783. -  
  2784. -  if (hasmntopt(mnt, MNTOPT_NOAUTO) || hasmntopt(mnt, MNTOPT_NOQUOTA))
  2785. -    return(False) ;
  2786. -  
  2787. -  if (!hasquota(mnt, USRQUOTA, &qfpathname))
  2788. -    return(False) ;
  2789. -  
  2790. -  euser_id = geteuid();
  2791. -  seteuid(0);
  2792. -  
  2793. -  if (quotactl(qcmd, mnt->mnt_fsname, euser_id, (caddr_t)&D) != 0) {
  2794. -    if ((fd = open(qfpathname, O_RDONLY)) < 0) {
  2795. -      seteuid(euser_id);
  2796. -      return(False);
  2797. -    }
  2798. -    lseek(fd, (long) dqoff(euser_id), L_SET);
  2799. -    switch (read(fd, &D, sizeof(struct dqblk))) {
  2800. -    case 0:/* EOF */
  2801. -      memset((caddr_t)&D, 0, sizeof(struct dqblk));
  2802. -      break;
  2803. -    case sizeof(struct dqblk):   /* OK */
  2804. -      break;
  2805. -    default:   /* ERROR */
  2806. -      close(fd);
  2807. -      seteuid(euser_id);
  2808. -      return(False);
  2809. -    }
  2810. -  }
  2811. -  seteuid(euser_id);
  2812. -  *bsize=1024;
  2813. -
  2814. -  if (D.dqb_bsoftlimit==0)
  2815. -    return(False);
  2816. -  if ((D.dqb_curblocks>D.dqb_bsoftlimit)||(D.dqb_curinodes>D.dqb_isoftlimit))
  2817. -    {
  2818. -      *dfree = 0;
  2819. -      *dsize = D.dqb_curblocks;
  2820. -    }
  2821. -  else {
  2822. -    *dfree = D.dqb_bsoftlimit - D.dqb_curblocks;
  2823. -    *dsize = D.dqb_bsoftlimit;
  2824. -  }
  2825. -  return (True);
  2826. -}
  2827. -#else
  2828. -#ifndef CRAY
  2829. -/****************************************************************************
  2830. -try to get the disk space from disk quotas
  2831. -****************************************************************************/
  2832. -static BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
  2833. -{
  2834. -  uid_t user_id, euser_id;
  2835. -  int r;
  2836. -  char dev_disk[256];
  2837. -  struct dqblk D;
  2838. -  struct stat S;
  2839. -  /* find the block device file */
  2840. -  if ((stat(path, &S)<0) ||
  2841. -      (devnm(S_IFBLK, S.st_dev, dev_disk, 256, 0)<0)) return (False);
  2842. -
  2843. -  euser_id = geteuid();
  2844. -
  2845. -#ifdef USE_SETRES
  2846. -  /* for HPUX, real uid must be same as euid to execute quotactl for euid */
  2847. -  user_id = getuid();
  2848. -  setresuid(euser_id,-1,-1);
  2849. -#endif
  2850. -  r=quotactl(Q_GETQUOTA, dev_disk, euser_id, &D);
  2851. -  #ifdef USE_SETRES
  2852. -  if (setresuid(user_id,-1,-1))
  2853. -    DEBUG(5,("Unable to reset uid to %d\n", user_id));
  2854. -  #endif
  2855. -  /* Use softlimit to determine disk space, except when it has been exceeded */
  2856. -  *bsize = 1024;
  2857. -  if (r)
  2858. -    {
  2859. -      if (errno == EDQUOT) 
  2860. -    {
  2861. -       *dfree =0;
  2862. -       *dsize =D.dqb_curblocks;
  2863. -       return (True);
  2864. -    }
  2865. -      else return(False);
  2866. -    }
  2867. -  /* Use softlimit to determine disk space, except when it has been exceeded */
  2868. -  if ((D.dqb_curblocks>D.dqb_bsoftlimit)||(D.dqb_curfiles>D.dqb_fsoftlimit)) 
  2869. -    {
  2870. -      *dfree = 0;
  2871. -      *dsize = D.dqb_curblocks;
  2872. -    }
  2873. -  else {
  2874. -    *dfree = D.dqb_bsoftlimit - D.dqb_curblocks;
  2875. -    *dsize = D.dqb_bsoftlimit;
  2876. -  }
  2877. -  return (True);
  2878. -}
  2879. -#else
  2880. -/****************************************************************************
  2881. -try to get the disk space from disk quotas (CRAY VERSION)
  2882. -****************************************************************************/
  2883. -static BOOL disk_quotas(char *path, int *bsize, int *dfree, int *dsize)
  2884. -{
  2885. -  struct mntent *mnt;
  2886. -  FILE *fd;
  2887. -  struct stat sbuf;
  2888. -  dev_t devno ;
  2889. -  static dev_t devno_cached = 0 ;
  2890. -  static char name[MNTMAXSTR] ;
  2891. -  struct q_request request ;
  2892. -  struct qf_header header ;
  2893. -  static int quota_default = 0 ;
  2894. -  int found ;
  2895. -  
  2896. -  if ( stat(path,&sbuf) == -1 )
  2897. -    return(False) ;
  2898. -  
  2899. -  devno = sbuf.st_dev ;
  2900. -  
  2901. -  if ( devno != devno_cached ) {
  2902. -    
  2903. -    devno_cached = devno ;
  2904. -    
  2905. -    if ((fd = setmntent(KMTAB)) == NULL)
  2906. -      return(False) ;
  2907. -    
  2908. -    found = False ;
  2909. -    
  2910. -    while ((mnt = getmntent(fd)) != NULL) {
  2911. -      
  2912. -      if ( stat(mnt->mnt_dir,&sbuf) == -1 )
  2913. -    continue ;
  2914. -      
  2915. -      if (sbuf.st_dev == devno) {
  2916. -    
  2917. -    found = True ;
  2918. -    break ;
  2919. -    
  2920. -      }
  2921. -      
  2922. -    }
  2923. -    
  2924. -    strcpy(name,mnt->mnt_dir) ;
  2925. -    endmntent(fd) ;
  2926. -    
  2927. -    if ( ! found )
  2928. -      return(False) ;
  2929. -  }
  2930. -  
  2931. -  request.qf_magic = QF_MAGIC ;
  2932. -  request.qf_entry.id = geteuid() ;
  2933. -  
  2934. -  if (quotactl(name, Q_GETQUOTA, &request) == -1)
  2935. -    return(False) ;
  2936. -  
  2937. -  if ( ! request.user )
  2938. -    return(False) ;
  2939. -  
  2940. -  if ( request.qf_entry.user_q.f_quota == QFV_DEFAULT ) {
  2941. -    
  2942. -    if ( ! quota_default ) {
  2943. -      
  2944. -      if ( quotactl(name, Q_GETHEADER, &header) == -1 )
  2945. -    return(False) ;
  2946. -      else
  2947. -    quota_default = header.user_h.def_fq ;
  2948. -    }
  2949. -    
  2950. -    *dfree = quota_default ;
  2951. -    
  2952. -  }else if ( request.qf_entry.user_q.f_quota == QFV_PREVENT ) {
  2953. -    
  2954. -    *dfree = 0 ;
  2955. -    
  2956. -  }else{
  2957. -    
  2958. -    *dfree = request.qf_entry.user_q.f_quota ;
  2959. -    
  2960. -  }
  2961. -  
  2962. -  *dsize = request.qf_entry.user_q.f_use ;
  2963. -  
  2964. -  if ( *dfree )
  2965. -    *dfree -= *dsize ;
  2966. -  
  2967. -  if ( *dfree < 0 )
  2968. -    *dfree = 0 ;
  2969. -  
  2970. -  *bsize = 4096 ;  /* Cray blocksize */
  2971. -  
  2972. -  return(True) ;
  2973. -  
  2974. -}
  2975. -#endif /* CRAY */
  2976. -#endif /* LINUX */
  2977. -#endif /* QUOTAS */
  2978. -
  2979. -
  2980.  /****************************************************************************
  2981.  normalise for DOS usage 
  2982.  ****************************************************************************/
  2983. @@ -1227,16 +986,6 @@
  2984.    if (lp_share_modes(SNUM(cnum)))
  2985.      del_share_mode(fnum);
  2986.  
  2987. -  if (Files[fnum].modified) {
  2988. -    struct stat st;
  2989. -    if (fstat(Files[fnum].fd,&st) == 0) {
  2990. -      int dosmode = dos_mode(cnum,Files[fnum].name,&st);
  2991. -      if (!IS_DOS_ARCHIVE(dosmode)) {    
  2992. -    dos_chmod(cnum,Files[fnum].name,dosmode | aARCH,&st);
  2993. -      }
  2994. -    }    
  2995. -  }
  2996. -
  2997.    close(Files[fnum].fd);
  2998.  
  2999.    /* NT uses smbclose to start a print - weird */
  3000. @@ -1609,7 +1358,16 @@
  3001.      return(0);
  3002.    }
  3003.  
  3004. -  Files[fnum].modified = True;
  3005. +  if (!Files[fnum].modified) {
  3006. +    struct stat st;
  3007. +    Files[fnum].modified = True;
  3008. +    if (fstat(Files[fnum].fd,&st) == 0) {
  3009. +      int dosmode = dos_mode(Files[fnum].cnum,Files[fnum].name,&st);
  3010. +      if (MAP_ARCHIVE(Files[fnum].cnum) && !IS_DOS_ARCHIVE(dosmode)) {    
  3011. +    dos_chmod(Files[fnum].cnum,Files[fnum].name,dosmode | aARCH,&st);
  3012. +      }
  3013. +    }  
  3014. +  }
  3015.  
  3016.    return(write_data(Files[fnum].fd,data,n));
  3017.  }
  3018. @@ -2222,6 +1980,9 @@
  3019.            signal(SIGPIPE, SIGNAL_CAST sig_pipe);
  3020.            signal(SIGCLD, SIGNAL_CAST SIG_DFL);
  3021.  #endif
  3022. +          /* close the listening socket */
  3023. +          close(s);
  3024. +
  3025.            /* close our standard file descriptors */
  3026.            close_low_fds();
  3027.    
  3028. @@ -3989,10 +3750,15 @@
  3029.        }
  3030.  
  3031.        if (keepalive && (counter-last_keepalive)>keepalive) {
  3032. +        extern int password_client;
  3033.          if (!send_keepalive(Client)) {
  3034.            DEBUG(2,("%s Keepalive failed - exiting\n",timestring()));
  3035.            return;
  3036. -        }
  3037. +        }        
  3038. +        /* also send a keepalive to the password server if its still
  3039. +           connected */
  3040. +        if (password_client != -1)
  3041. +          send_keepalive(password_client);
  3042.          last_keepalive = counter;
  3043.        }
  3044.  
  3045. @@ -4277,22 +4043,23 @@
  3046.        become_daemon();
  3047.      }
  3048.  
  3049. -  if (open_sockets(is_daemon,port))
  3050. -    {      
  3051. -      /* possibly reload the services file. */
  3052. -      reload_services(True);
  3053. +  if (!open_sockets(is_daemon,port))
  3054. +    exit(1);
  3055.  
  3056. -      maxxmit = MIN(lp_maxxmit(),BUFFER_SIZE);
  3057. +  /* possibly reload the services file. */
  3058. +  reload_services(True);
  3059.  
  3060. -      if (*lp_rootdir())
  3061. -    {
  3062. -      if (sys_chroot(lp_rootdir()) == 0)
  3063. -        DEBUG(2,("%s changed root to %s\n",timestring(),lp_rootdir()));
  3064. -    }
  3065. +  maxxmit = MIN(lp_maxxmit(),BUFFER_SIZE);
  3066.  
  3067. -      process();
  3068. -      close_sockets();
  3069. +  if (*lp_rootdir())
  3070. +    {
  3071. +      if (sys_chroot(lp_rootdir()) == 0)
  3072. +    DEBUG(2,("%s changed root to %s\n",timestring(),lp_rootdir()));
  3073.      }
  3074. +
  3075. +  process();
  3076. +  close_sockets();
  3077. +
  3078.    exit_server("normal exit");
  3079.    return(0);
  3080.  }
  3081. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/status.c samba-1.9.16alpha2/source/status.c
  3082. --- samba-1.9.16alpha1/source/status.c    Mon Jan 15 18:39:50 1996
  3083. +++ samba-1.9.16alpha2/source/status.c    Mon May  6 10:35:46 1996
  3084. @@ -33,6 +33,7 @@
  3085.  struct connect_record crec;
  3086.  extern int DEBUGLEVEL;
  3087.  extern FILE *dbf;
  3088. +extern pstring myhostname;
  3089.  
  3090.  static pstring Ucrit_username = "";                   /* added by OH */
  3091.  int            Ucrit_pid[100];  /* Ugly !!! */        /* added by OH */
  3092. @@ -69,7 +70,7 @@
  3093.      return(1);
  3094.    }
  3095.  
  3096. -  while ((c = getopt(argc, argv, "pdsu:")) != EOF) {
  3097. +  while ((c = getopt(argc, argv, "pds:u:")) != EOF) {
  3098.      switch (c) {
  3099.      case 'd':
  3100.        verbose = 1;
  3101. @@ -89,13 +90,13 @@
  3102.      }
  3103.    }
  3104.  
  3105. -
  3106. -
  3107.    if (!lp_load(servicesf,False)) {
  3108.      fprintf(stderr, "Can't load %s - run testparm to debug it\n", servicesf);
  3109.      return (-1);
  3110.    }
  3111.  
  3112. +  get_myname(myhostname, NULL);
  3113. +
  3114.    if (verbose) {
  3115.      printf("using configfile = %s\n", servicesf);
  3116.      printf("lockdir = %s\n", *lp_lockdir() ? lp_lockdir() : "NULL");
  3117. @@ -112,6 +113,9 @@
  3118.      if (!lp_status(-1))
  3119.        printf("You need to have status=yes in your smb config file\n");
  3120.      return(0);
  3121. +  }
  3122. +  else if (verbose) {
  3123. +    printf("Opened status file %s\n", fname);
  3124.    }
  3125.  
  3126.    uid = getuid();
  3127. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/system.c samba-1.9.16alpha2/source/system.c
  3128. --- samba-1.9.16alpha1/source/system.c    Sun Feb 18 17:46:50 1996
  3129. +++ samba-1.9.16alpha2/source/system.c    Sun May  5 17:18:39 1996
  3130. @@ -79,7 +79,7 @@
  3131.      return(found);
  3132.        }
  3133.        
  3134. -      if (tval && tval.tv_sec < counter) return(0);
  3135. +      if (tval && tval->tv_sec < counter) return(0);
  3136.        sleep(1);
  3137.        counter++;
  3138.      }
  3139. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/trans2.c samba-1.9.16alpha2/source/trans2.c
  3140. --- samba-1.9.16alpha1/source/trans2.c    Thu Feb 29 00:11:48 1996
  3141. +++ samba-1.9.16alpha2/source/trans2.c    Mon May  6 10:35:46 1996
  3142. @@ -1444,7 +1444,7 @@
  3143.  {
  3144.    int cnum;
  3145.    int outsize = 0;
  3146. -  uint16 dptr_num=SVAL(inbuf,smb_vwv0);
  3147. +  int16 dptr_num=SSVAL(inbuf,smb_vwv0);
  3148.  
  3149.    cnum = SVAL(inbuf,smb_tid);
  3150.  
  3151. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/util.c samba-1.9.16alpha2/source/util.c
  3152. --- samba-1.9.16alpha1/source/util.c    Thu Feb 29 00:11:48 1996
  3153. +++ samba-1.9.16alpha2/source/util.c    Wed May 29 13:11:55 1996
  3154. @@ -151,6 +151,35 @@
  3155.  
  3156.  
  3157.  /*******************************************************************
  3158. +check if the log has grown too big
  3159. +********************************************************************/
  3160. +static void check_log_size(void)
  3161. +{
  3162. +  static int debug_count=0;
  3163. +  int maxlog;
  3164. +  struct stat st;
  3165. +
  3166. +  if (debug_count++ < 100) return;
  3167. +
  3168. +  maxlog = lp_max_log_size() * 1024;
  3169. +  if (!dbf || maxlog <= 0) return;
  3170. +
  3171. +  if (fstat(fileno(dbf),&st) == 0 && st.st_size > maxlog) {
  3172. +    fclose(dbf); dbf = NULL;
  3173. +    reopen_logs();
  3174. +    if (dbf && file_size(debugf) > maxlog) {
  3175. +      pstring name;
  3176. +      fclose(dbf); dbf = NULL;
  3177. +      sprintf(name,"%s.old",debugf);
  3178. +      sys_rename(debugf,name);
  3179. +      reopen_logs();
  3180. +    }
  3181. +  }
  3182. +  debug_count=0;
  3183. +}
  3184. +
  3185. +
  3186. +/*******************************************************************
  3187.  write an debug message on the debugfile. This is called by the DEBUG
  3188.  macro
  3189.  ********************************************************************/
  3190. @@ -165,44 +194,17 @@
  3191.  #endif
  3192.    va_list ap;  
  3193.    
  3194. +  if (stdout_logging) {
  3195.  #ifdef __STDC__
  3196. -  va_start(ap, format_str);
  3197. +    va_start(ap, format_str);
  3198.  #else
  3199. -  va_start(ap);
  3200. -  format_str = va_arg(ap,char *);
  3201. +    va_start(ap);
  3202. +    format_str = va_arg(ap,char *);
  3203.  #endif
  3204. -
  3205. -  if (stdout_logging) {
  3206.      vfprintf(dbf,format_str,ap);
  3207.      va_end(ap);
  3208.      return(0);
  3209.    }
  3210. -
  3211. -  {
  3212. -    static int debug_count=0;
  3213. -
  3214. -    debug_count++;
  3215. -    if (debug_count == 100) {
  3216. -      int maxlog = lp_max_log_size() * 1024;
  3217. -      if (dbf && maxlog > 0)
  3218. -    {
  3219. -      struct stat st;
  3220. -
  3221. -      if (fstat(fileno(dbf),&st) == 0 && st.st_size > maxlog) {
  3222. -        fclose(dbf); dbf = NULL;
  3223. -        reopen_logs();
  3224. -        if (dbf && file_size(debugf) > maxlog) {
  3225. -          pstring name;
  3226. -          fclose(dbf); dbf = NULL;
  3227. -          sprintf(name,"%s.old",debugf);
  3228. -          sys_rename(debugf,name);
  3229. -          reopen_logs();
  3230. -        }
  3231. -      }
  3232. -    }
  3233. -      debug_count=0;
  3234. -    }
  3235. -  }
  3236.    
  3237.  #ifdef SYSLOG
  3238.    if (!lp_syslog_only())
  3239. @@ -241,7 +243,14 @@
  3240.        else
  3241.      priority = priority_map[syslog_level];
  3242.        
  3243. +#ifdef __STDC__
  3244. +      va_start(ap, format_str);
  3245. +#else
  3246. +      va_start(ap);
  3247. +      format_str = va_arg(ap,char *);
  3248. +#endif
  3249.        vsprintf(msgbuf, format_str, ap);
  3250. +      va_end(ap);
  3251.        
  3252.        msgbuf[255] = '\0';
  3253.        syslog(priority, "%s", msgbuf);
  3254. @@ -252,11 +261,19 @@
  3255.    if (!lp_syslog_only())
  3256.  #endif
  3257.      {
  3258. +#ifdef __STDC__
  3259. +      va_start(ap, format_str);
  3260. +#else
  3261. +      va_start(ap);
  3262. +      format_str = va_arg(ap,char *);
  3263. +#endif
  3264.        vfprintf(dbf,format_str,ap);
  3265. +      va_end(ap);
  3266.        fflush(dbf);
  3267.      }
  3268. -  
  3269. -  va_end(ap);
  3270. +
  3271. +  check_log_size();
  3272. +
  3273.    return(0);
  3274.  }
  3275.  
  3276. @@ -464,12 +481,11 @@
  3277.  
  3278.      table_size++;
  3279.  
  3280. -    dst_table[i].is_dst = is_dst = (localtime(&t)->tm_isdst?True:False);;
  3281. +    dst_table[i].is_dst = is_dst = (localtime(&t)->tm_isdst?True:False);
  3282.      dst_table[i].start = dst_table[i].end = t;
  3283.      
  3284.      /* no entry will cover more than 6 months */
  3285.      low = t - 3*30*24*60*60;
  3286. -    high = t + 3*30*24*60*60;
  3287.  
  3288.      /* widen the new entry using two bisection searches */
  3289.      while (low+60*60 < dst_table[i].start) {
  3290. @@ -480,8 +496,9 @@
  3291.      low = t;
  3292.      }
  3293.  
  3294. +    high = low + 3*30*24*60*60;
  3295.      while (high-60*60 > dst_table[i].end) {
  3296. -      t = high + (high-dst_table[i].end)/2;
  3297. +      t = high - (high-dst_table[i].end)/2;
  3298.        if ((localtime(&t)->tm_isdst?True:False) == is_dst)
  3299.      dst_table[i].end = t;
  3300.        else
  3301. diff -u -r --new-file --exclude=CVS samba-1.9.16alpha1/source/version.h samba-1.9.16alpha2/source/version.h
  3302. --- samba-1.9.16alpha1/source/version.h    Thu Feb 29 00:22:55 1996
  3303. +++ samba-1.9.16alpha2/source/version.h    Wed May 29 14:35:23 1996
  3304. @@ -1 +1 @@
  3305. -#define VERSION "1.9.16alpha1"
  3306. +#define VERSION "1.9.16alpha2"
  3307.